Campbell Barton [Mon, 31 Oct 2011 09:52:43 +0000 (09:52 +0000)]
Correction to own commit r41169
Campbell Barton [Mon, 31 Oct 2011 07:17:35 +0000 (07:17 +0000)]
fix [#29089] Faces created for "rims" by solidify modifier have incorrect visibility
Campbell Barton [Mon, 31 Oct 2011 06:13:20 +0000 (06:13 +0000)]
use_verify option to defvert_sync_mapped and defvert_sync was flipped, also minor edits to defvert_verify_index() - no functional change.
Campbell Barton [Mon, 31 Oct 2011 01:50:04 +0000 (01:50 +0000)]
fix own error r41191 getting id property string lengths.
Thomas Dinges [Mon, 31 Oct 2011 00:35:14 +0000 (00:35 +0000)]
Sculpt UI:
* Code cleanup.
Campbell Barton [Mon, 31 Oct 2011 00:23:42 +0000 (00:23 +0000)]
fix [#29098] File save dialog cannot handle extra periods in file name
Thomas Dinges [Mon, 31 Oct 2011 00:03:18 +0000 (00:03 +0000)]
Another Bconf Feature Request. :)
Some UI and code cleanup for the "Symmetry" panel in sculpt mode.
* Made X, Y, Z Buttons toggle buttons, as the other X,Y,Z in the "Options" panel above in sculpt mode, for consistency.
Thomas Dinges [Sun, 30 Oct 2011 23:01:24 +0000 (23:01 +0000)]
Blender Conference Feature Request by Jonathan:
* Made "V3D_BGPIC_EXPANDED" true per default, so when you add a new background image, you don't have to expand the UI to select the image.
Jens Verwiebe [Sun, 30 Oct 2011 20:47:03 +0000 (20:47 +0000)]
WIN32, fix a crash when blender is executed in background mode, patch by kjym3
Sergey Sharybin [Sun, 30 Oct 2011 14:53:26 +0000 (14:53 +0000)]
Change default values for mix node.
Discussed with plenty of artists on De Balie and this values makes much more sense.
Campbell Barton [Sun, 30 Oct 2011 06:53:25 +0000 (06:53 +0000)]
make_uv_vert_map() was looping over the texture face for not reason.
Campbell Barton [Sun, 30 Oct 2011 04:48:00 +0000 (04:48 +0000)]
correct flags for older GCC's which dont suppport -Wno-deprecated-declarations,
detect if the flag is supported before use
Thomas Dinges [Sat, 29 Oct 2011 23:56:07 +0000 (23:56 +0000)]
Modifier compilation tweaks (Blender conference commit)
* Fluid compilation: Inverse the compile flag from DISABLE_ELBEEM to WITH_MOD_FLUID for consistency. (scons/cmake)
* Use WITH_BF_FLUID in your user config (scons)
* Add support for scons to disable build with Decimate and Boolean modifier.
(WITH_BF_DECIMATE and WITH_BF_BOOLEAN)
Andrew Wiggin [Sat, 29 Oct 2011 16:14:38 +0000 (16:14 +0000)]
Fix RelWithDebInfo build.
RelWithDebInfo sets the library path to only include release libraries (e.g. python32.lib) but defining _DEBUG when #include'ing python headers inserts a linker directive to require for python32_d.lib. Additionally, RelWithDebInfo should be different from release build in that it builds debugger symbols (.PDBs), it should not have asserts and other debug code.
Campbell Barton [Sat, 29 Oct 2011 11:15:12 +0000 (11:15 +0000)]
bug from revision 2!, error noticed kjym3 on IRC, buffer overrun on lbarray, was 30 but 39 items beting accessed, surprising this didnt crash earlier.
Campbell Barton [Sat, 29 Oct 2011 08:18:42 +0000 (08:18 +0000)]
replace BLI_strtok_r from r41337 with lighter method that doesnt alloc for template_list
Brecht Van Lommel [Fri, 28 Oct 2011 16:57:06 +0000 (16:57 +0000)]
Fix: OpenGL renders on graphics cards which do not support non-power-of-two
textures were stretched and the wrong size.
Bastien Montagne [Fri, 28 Oct 2011 13:09:43 +0000 (13:09 +0000)]
UI list template: committing patch [#26629].
This adds the ability (esp. for py scripts) to add some controls for each list element. See http://wiki.blender.org/index.php/User:Mont29/UI_Template_List_Enhancement for details.
Bastien Montagne [Fri, 28 Oct 2011 13:07:11 +0000 (13:07 +0000)]
BLI_string: Adding the BLI_strtok_r function, which mimics stdlib strtok_r (unavailable on some systems).
It allows to iterate over a string, returning an new element each time, using a char as separator. See BLI_String.h's comments for more info and an example.
Needed by the UI template list patch following!
Campbell Barton [Fri, 28 Oct 2011 12:40:15 +0000 (12:40 +0000)]
replace VECCOPY and QUATCOPY with inline funcs.
Campbell Barton [Fri, 28 Oct 2011 08:53:00 +0000 (08:53 +0000)]
fix for error in gpu.export_shader() was missing *4 (only writing 1/4 of the colorband)
Campbell Barton [Fri, 28 Oct 2011 04:44:59 +0000 (04:44 +0000)]
use generic path remapping when making all library data local, previously only image paths were getting corrected, now all paths will (scene image seq strips, pointcache etc)
Campbell Barton [Fri, 28 Oct 2011 04:05:52 +0000 (04:05 +0000)]
fix [#29062] Can not save image as external on a writable path
Campbell Barton [Fri, 28 Oct 2011 03:02:09 +0000 (03:02 +0000)]
prefix common internal operator function names so its possible to assign them breakpoints.
Campbell Barton [Fri, 28 Oct 2011 02:10:02 +0000 (02:10 +0000)]
fix [#29063] reprojetion painting : failed to create opengl offscreen buffer
error report was not passed into the UI and only printed into the terminal, now shows an error popup.
Campbell Barton [Fri, 28 Oct 2011 01:10:46 +0000 (01:10 +0000)]
patch [#29049] Minor phrasing and grammar patch
Joshua Leung [Fri, 28 Oct 2011 00:09:13 +0000 (00:09 +0000)]
Renaming the extensionless "blenderbuttons" to "blender_icons.png"
Jens Verwiebe [Thu, 27 Oct 2011 15:50:51 +0000 (15:50 +0000)]
OSX: adapt comments to new behaviour when compiling with gcc-4.6 but GHOST and QT with default compiler
Jens Verwiebe [Thu, 27 Oct 2011 15:46:26 +0000 (15:46 +0000)]
Fix player prototype, fix compile for OSX/XCode4.2, use always tablet enabled (test)
Campbell Barton [Thu, 27 Oct 2011 14:41:26 +0000 (14:41 +0000)]
use const for readonly strings and set some functions to static
Andrew Wiggin [Thu, 27 Oct 2011 12:37:14 +0000 (12:37 +0000)]
..and now fix linux build since my windows build fix had a lowercase typo
Andrew Wiggin [Thu, 27 Oct 2011 12:28:39 +0000 (12:28 +0000)]
Fix windows build (__func__ macro needs definition from BLI_utildefines.h on MSVC)
Campbell Barton [Thu, 27 Oct 2011 07:54:32 +0000 (07:54 +0000)]
fix [#29044] applying mirror modifier causes crash; something with vertex groups?
Campbell Barton [Thu, 27 Oct 2011 07:26:41 +0000 (07:26 +0000)]
tweak remove_strict_flags so it can be used with gcc's -Wall
Campbell Barton [Thu, 27 Oct 2011 06:05:55 +0000 (06:05 +0000)]
utf8 buffer wasn't being initialized in ghost_event_proc
Campbell Barton [Thu, 27 Oct 2011 05:34:39 +0000 (05:34 +0000)]
use path remapping for all make local functions, patch from Alex Fraser with changes.
Campbell Barton [Thu, 27 Oct 2011 04:24:34 +0000 (04:24 +0000)]
pass image description to image loading functions for more useful error than 'Unknown fileformat'.
Campbell Barton [Thu, 27 Oct 2011 03:40:12 +0000 (03:40 +0000)]
bpath
- loop over all sequence images and pointcache
- option not to loop over library / packed data, expose in bpy.utils.blend_paths()
Joshua Leung [Thu, 27 Oct 2011 01:55:10 +0000 (01:55 +0000)]
Bugfix [#29015] Copy n Paste keyframes and poses broken?
Improved error messages presented when trying to paste keyframes.
Previously, "No keyframes to paste" would always be displayed, even if
the copy/paste buffer had some contents but couldn't be pasted if
there weren't any F-Curves selected to paste to.
Campbell Barton [Thu, 27 Oct 2011 01:25:07 +0000 (01:25 +0000)]
- remove bpath iterator and replace all uses with visitor.
- added flag to optionally receive all paths as absolute.
Joshua Leung [Thu, 27 Oct 2011 01:05:55 +0000 (01:05 +0000)]
Typos and formatting fixes
Campbell Barton [Wed, 26 Oct 2011 22:46:06 +0000 (22:46 +0000)]
Support more kinds of paths for path re-writing / traversing, patch from Alex Fraser with additions.
this now supports as many types as bpath iterator which its intended to replace.
Campbell Barton [Wed, 26 Oct 2011 21:30:08 +0000 (21:30 +0000)]
quiet -Wempty-body and unused warnings
Campbell Barton [Wed, 26 Oct 2011 21:22:35 +0000 (21:22 +0000)]
edits ontop of Alex's patch from r41292.
pass main rather than use G.main when naming from -> to relative paths.
Brecht Van Lommel [Wed, 26 Oct 2011 14:05:01 +0000 (14:05 +0000)]
Fix #29030: render operator only used scene property if layers was used, now it
is possible to specify the scene without the layer too.
Alex Fraser [Wed, 26 Oct 2011 10:49:21 +0000 (10:49 +0000)]
Fix [#28772] Filepaths are not remmaped after making a library item local
Added a visitor function to simplify processing of file paths that are attached to IDs. This is used for images, and could be used for other ID types in future.
Code reviewed by ideasman_42.
Campbell Barton [Wed, 26 Oct 2011 00:51:29 +0000 (00:51 +0000)]
cmake - set configuration specific defines globally rather than mixing in with c/cxx flags
Sergey Sharybin [Tue, 25 Oct 2011 18:13:12 +0000 (18:13 +0000)]
Fix compilation error for win32.
That static align trick i've wrote about is still necessary.
Guillermo S. Romero [Tue, 25 Oct 2011 13:44:35 +0000 (13:44 +0000)]
SVN maintenance.
Campbell Barton [Tue, 25 Oct 2011 13:41:43 +0000 (13:41 +0000)]
edits to cmake
Campbell Barton [Tue, 25 Oct 2011 13:13:02 +0000 (13:13 +0000)]
- fix numpad comma replacement which was broken since unicode input was added.
- add blender-softwaregl wrapper script for unix
- quiet compiler warning.
Sergey Sharybin [Tue, 25 Oct 2011 12:37:42 +0000 (12:37 +0000)]
Libraries upgrade:
- Upgrade Eigen2 library to Eigen3
- Upgrade colamd library and placed in extern/ so other libraries from extern/ can use it
NOTE: With previous version of Eigen (3.0.1) it was necessary to define
EIGEN_DONT_ALIGN_STATICALLY macro to make it compilable on windows 32bit.
After latest upgrade it seems to be unnecessary (at least when was testing libmv),
so i removed that defines which can reduce speed and lead to other problems.
Campbell Barton [Tue, 25 Oct 2011 11:06:52 +0000 (11:06 +0000)]
cmake macro to set less strict flags per file - remove_strict_flags_file(file, file...)
this way we can avoid removing strict flags for all files in blenkernel.
Campbell Barton [Tue, 25 Oct 2011 04:01:09 +0000 (04:01 +0000)]
misc small edits, remove remaining Id's
Campbell Barton [Mon, 24 Oct 2011 23:29:28 +0000 (23:29 +0000)]
update is_c() utility function to include '.cc' and '.inl' files.
Sergey Sharybin [Mon, 24 Oct 2011 17:26:24 +0000 (17:26 +0000)]
Remove currently unused IMB_cache_limiter_* function.
Would be replaced with movie cache soon.
Sergey Sharybin [Mon, 24 Oct 2011 17:12:28 +0000 (17:12 +0000)]
MovieCache implementation
Implementation of cache for general movie-related areas
such as sequencer and clip editor (in the future)
Some changes in limiter were necessary:
- Limiter counted mapped memory twice when was checking how many memory is used.
- It was using "global" memory usage not memory usage by cached elements.
It will cause big problems when there's large mesh or plenty of undo steps are
in memory nothing would be cached in sequencer.
- To solve this problem introduced "callback" to measure cached element size.
It could be not very accurate in general, but it works well for image buffers.
And if this callback isn't set old-school memory usage check would be used.
- The whole cache used to get freed when memory limit exceeded, now it'll drop only
as much elements as necessary to reduce memory usage.
Seqcache is switched to use this new cache code.
Sergey Sharybin [Mon, 24 Oct 2011 17:09:31 +0000 (17:09 +0000)]
Some small fixes and changes:
- Add *.cc files to qtcreator project as well as .cpp and .cxx
(would be needed for correct generating projects with libmv library).
- Added negate_v2 and negate_v2_v2 functions. They'll be needed for
camera tracking project.
- Fixed issue with generating proxies from 32bit images.
(generated jpg-s opened fine in blender, but were dark in osx viewer).
- Marked unused arg in indexer as UNUSED.
Campbell Barton [Mon, 24 Oct 2011 12:26:14 +0000 (12:26 +0000)]
fix [#28961] FCurves.range() returns wrong values for one-point curves (sic!)
also fix for case where verts were treated as found but were infact not because none were selected.
Sergey Sharybin [Mon, 24 Oct 2011 10:26:37 +0000 (10:26 +0000)]
Fix #28949: can't render video to Flash
Several issues were discovered when was looking into this bug:
- MPEG file format didn't set needed codec settings such as frame
rate and so, Was caused by not very correct fix fix #21351.
- "Expert" codec settings stored in idprops was affected on
formats which don't actually need them causing some conflicts
in codec settings.
- Flash codec doesn't support b-frames.
Now C presets shouldn't affect on each other and flash coded wouldn't
use b-frames even when using h264 format. Should work fine for files
created from scratch. If existing files fails to render, try to
switch file format to something else and then back to needed value.
Campbell Barton [Mon, 24 Oct 2011 10:11:47 +0000 (10:11 +0000)]
fix for error utf8 printing input.
Campbell Barton [Mon, 24 Oct 2011 06:57:53 +0000 (06:57 +0000)]
fix for crash when entering in non unicode ascii chars.
now allow these but only for filepaths.
Campbell Barton [Mon, 24 Oct 2011 04:52:43 +0000 (04:52 +0000)]
added function BKE_library_filepath_set which sync's the libraries absolute path when setting to a relative value, before this you could never be sure if a libraries absolute path was valid or not because the user might have changed the relative library path in the outliner, now setting from the outliner and py/rna syncs the absolute path.
Bastien Montagne [Sun, 23 Oct 2011 19:54:06 +0000 (19:54 +0000)]
Another set of UI messages fixes and tweaks! No functional changes.
Bastien Montagne [Sun, 23 Oct 2011 19:39:20 +0000 (19:39 +0000)]
Fix for commit 41227 (Some opening comment tags (/*) were lost!).
Guillermo S. Romero [Sun, 23 Oct 2011 19:01:59 +0000 (19:01 +0000)]
Remove some more $Id$ that still were left after r41227 and r41228.
Guillermo S. Romero [Sun, 23 Oct 2011 18:38:16 +0000 (18:38 +0000)]
Remove the svn:keywords property.
Campbell Barton [Sun, 23 Oct 2011 17:52:20 +0000 (17:52 +0000)]
remove $Id: tags after discussion on the mailign list: markmail.org/message/fp7ozcywxum3ar7n
Thomas Dinges [Sun, 23 Oct 2011 15:43:12 +0000 (15:43 +0000)]
Typo fixes for the typo fixes. :D
Campbell Barton [Sun, 23 Oct 2011 15:27:36 +0000 (15:27 +0000)]
fix some typo's
Campbell Barton [Sun, 23 Oct 2011 13:52:51 +0000 (13:52 +0000)]
- fix for error with utf8 textinput for buttons
- ensure input is valid utf8 from ghost and NULL then complain if its not.
- added function to get utf8 size BLI_str_utf8_size()
Brecht Van Lommel [Sun, 23 Oct 2011 13:00:41 +0000 (13:00 +0000)]
Code refactoring: split main 3d view drawing function into object drawing and
info overlay drawing functions.
Brecht Van Lommel [Sun, 23 Oct 2011 12:58:19 +0000 (12:58 +0000)]
RNA: fix collection iterator issue in c++ api with msvc.
Campbell Barton [Sun, 23 Oct 2011 12:21:41 +0000 (12:21 +0000)]
committing 'a' to merge into the tag
Campbell Barton [Sun, 23 Oct 2011 12:17:24 +0000 (12:17 +0000)]
minor formatting edits (80 char width)
Campbell Barton [Sun, 23 Oct 2011 07:51:21 +0000 (07:51 +0000)]
set pythons 'sys.stdout' encoding to utf-8 and use surrogateescape error handler.
without this printing a unicode string may raise an error which is a real pain especially since script authors often forget this and print the path of a file for example on export which can make a script fail outright when writing to paths with certain encodings.
Campbell Barton [Sun, 23 Oct 2011 07:03:57 +0000 (07:03 +0000)]
rna access to event.unicode so scripts can get unicode text input.
Campbell Barton [Sun, 23 Oct 2011 06:56:39 +0000 (06:56 +0000)]
py/rna api crash fix: getting event.ascii would crash blender (strange nobody noticed this, seems its been there for over a year???).
Campbell Barton [Sun, 23 Oct 2011 05:56:55 +0000 (05:56 +0000)]
BLI_make_file_string wasn't guaranteed to initialize the resulting path, some parts of the code accounted for this but most not, always initialize the string to "".
Campbell Barton [Sun, 23 Oct 2011 05:08:02 +0000 (05:08 +0000)]
use defines for keying set names to avoid confusing them with text and having some incorrect names (as fixed in last commit)
Campbell Barton [Sun, 23 Oct 2011 04:48:13 +0000 (04:48 +0000)]
fix for incorrect keying set names 'Scale' vs 'Scaling', where 'Scale' was hard coded in auto keyframe when 'Only Insert Needed' option was enabled and would always fail to return a keying set.
- to be included in 2.60a.
Campbell Barton [Sun, 23 Oct 2011 04:13:56 +0000 (04:13 +0000)]
Context menu 'Edit Source' operator no longer needs to be enabled as a build option, improved this so the python file:line lookups are only done when the operator runs (previously this was done for every button, every draw when the build option was enabled).
Perhaps this should be hidden when not running with --debug, easy to change.
Campbell Barton [Sun, 23 Oct 2011 01:06:38 +0000 (01:06 +0000)]
fix for own mistake r41192
Campbell Barton [Sun, 23 Oct 2011 00:53:50 +0000 (00:53 +0000)]
rename user interface operator properties from 'op' to 'props'
Joerg Mueller [Sat, 22 Oct 2011 18:08:26 +0000 (18:08 +0000)]
Fix for an unhandled exception. Campbell: please include in 2.60a.
Brecht Van Lommel [Sat, 22 Oct 2011 17:01:54 +0000 (17:01 +0000)]
Render API: add update_progress() function to update progress bar progress from
external render engines.
Also refactoring to move some render engine registration stuff out of RNA and
into render module.
Brecht Van Lommel [Sat, 22 Oct 2011 16:24:28 +0000 (16:24 +0000)]
Code refactoring: move external engine functions into own file.
Thomas Dinges [Sat, 22 Oct 2011 16:01:19 +0000 (16:01 +0000)]
* Re-commit splash screen with Alpha header.
Brecht Van Lommel [Sat, 22 Oct 2011 15:35:49 +0000 (15:35 +0000)]
Code cleanup: file operations merged into single header, some function names
made less cryptic and changed to indicate if they work on files or directories.
Campbell Barton [Sat, 22 Oct 2011 11:34:01 +0000 (11:34 +0000)]
- use defines for wmKeyMapItem & wmEvent alt/shift/ctrl/oskey
- clear utf8_buf on key up & complain if its set (should never happen)
Campbell Barton [Sat, 22 Oct 2011 10:49:35 +0000 (10:49 +0000)]
py api - added PyC_UnicodeFromByteAndSize() to match PyUnicode_FromStringAndSize()
also made RNA_property_string_get_alloc() return the length of the new string to avoid having to run strlen on it after.
Dalai Felinto [Sat, 22 Oct 2011 09:28:10 +0000 (09:28 +0000)]
utf8 OSX - cleanup
I still think utf8_buf can be 5 (4 bytes + '\0'), but even 6 may not be enough to what is coming next (NFC - precomposedStringWithCanonicalMapping)
incorporating ascii as a subset of utf8. I don't think we need to re-encode it.
U+0000 ~ U+00FF - latin1 set
Alexander Kuznetsov [Sat, 22 Oct 2011 04:36:58 +0000 (04:36 +0000)]
Fix for alt-tab in Windows.
utf8_buf can be not null terminated, plus not init as in this case. (I need to investigate more)
Campbell Barton [Sat, 22 Oct 2011 03:39:13 +0000 (03:39 +0000)]
BLI_utildefine minor edits
- removed AVG2, was only used once.
- remove unused LONGCOPY define.
- removed BLI_STRUCT_OFFSET, was only used once, replce with offsetof
- formatting edits, split some macros over multiple lines.
Alexander Kuznetsov [Sat, 22 Oct 2011 03:14:19 +0000 (03:14 +0000)]
Fix for text object on windows.
No utf8 when keyup
Campbell Barton [Sat, 22 Oct 2011 01:53:35 +0000 (01:53 +0000)]
header cleanup and typo's
Brecht Van Lommel [Fri, 21 Oct 2011 22:33:41 +0000 (22:33 +0000)]
Code cleanup: remove BLI_exist, now there is only BLI_exists. One function just
called the other, they did the same thing.
Dalai Felinto [Fri, 21 Oct 2011 19:09:14 +0000 (19:09 +0000)]
utf8 OSX - disabling utf8 at KeyUp, otherwise TextObject doesn't work.
This bug is also present in Windows, so I believe the real bug is in Linux (and in the text object input).
Also Cmd+C and Cmd+v doesn't work for utf8 yet.
Alexander Kuznetsov [Fri, 21 Oct 2011 17:40:35 +0000 (17:40 +0000)]
UTF8 input support for Windows.
ToDo:
* add support for dead keys
* other input methods (for hieroglyphs)
Brecht Van Lommel [Fri, 21 Oct 2011 17:37:38 +0000 (17:37 +0000)]
Code cleanup: don't use btempdir/bprogdir/bprogname globals anymore, but wrap
in BLI_ functions.