10 years agoCycles: svn merge -r41266:41467 ^/trunk/blender
Brecht Van Lommel [Wed, 2 Nov 2011 16:17:05 +0000 (16:17 +0000)]
Cycles: svn merge -r41266:41467 ^/trunk/blender

10 years agoCycles: RenderEngine api code tweaks, also ensuring it's backwards compatible.
Brecht Van Lommel [Wed, 2 Nov 2011 15:15:45 +0000 (15:15 +0000)]
Cycles: RenderEngine api code tweaks, also ensuring it's backwards compatible.

10 years agoWorld Mist
Thomas Dinges [Wed, 2 Nov 2011 14:36:21 +0000 (14:36 +0000)]
World Mist
* Removed some more unused stuff and marked as deprecated.

10 years agoRenderEngine: steps towards implementation of this proposal:
Brecht Van Lommel [Wed, 2 Nov 2011 14:33:14 +0000 (14:33 +0000)]
RenderEngine: steps towards implementation of this proposal:

* RenderEngine is now a persistent python object that exists and retains
  properties as long as a frame is being rendered. This is mostly useful now
  that more than one callback will be added.
* Added update() callback that should ideally be used to export the scene,
  leaving only the rendering to the render() callback. This is not required to
  be used at this point, but separating this will make things more thread safe
  later on.
* Added tag_redraw() and tag_update() functions that will be used for viewport
* Internal change: status text is now retained after update_status calls.

10 years agoWorld Stars:
Thomas Dinges [Wed, 2 Nov 2011 14:28:16 +0000 (14:28 +0000)]
World Stars:
* Remove remaining star color code, was unused. Marked as deprecated in DNA.

10 years agoRenderEngine: add .is_animation and .is_preview properties to detect if it's
Brecht Van Lommel [Wed, 2 Nov 2011 13:36:28 +0000 (13:36 +0000)]
RenderEngine: add .is_animation and .is_preview properties to detect if it's
an animation or preview render that is being done.

10 years agoRelated to #29092: make the working of the Mist Intensity option more clear in
Brecht Van Lommel [Wed, 2 Nov 2011 12:18:51 +0000 (12:18 +0000)]
Related to #29092: make the working of the Mist Intensity option more clear in
the user interface.

10 years agonew math function: Quaternion.to_axis_angle().
Campbell Barton [Wed, 2 Nov 2011 09:13:04 +0000 (09:13 +0000)]
new math function: Quaternion.to_axis_angle().
add in safety checks for inf/nan values which could happen in some cases.

10 years agominor cleanup for weightpaint fill
Campbell Barton [Wed, 2 Nov 2011 00:51:21 +0000 (00:51 +0000)]
minor cleanup for weightpaint fill
- SCE_SELECT_FACE and SCE_SELECT_VERTEX are mutually exclusive, use a macro to get a single value from them.
- was allocating an array for no reason.

10 years agoFunction convertViewVec() contained some piece of code duplicated four
Nicholas Bishop [Wed, 2 Nov 2011 00:17:37 +0000 (00:17 +0000)]
Function convertViewVec() contained some piece of code duplicated four
times, pulled out into separate function and cleaned up a bit. Should
be no functional changes.

10 years agofix [#29120] project painting error
Campbell Barton [Tue, 1 Nov 2011 23:01:57 +0000 (23:01 +0000)]
fix [#29120] project painting error

10 years agoquiet some warnings.
Campbell Barton [Tue, 1 Nov 2011 22:51:10 +0000 (22:51 +0000)]
quiet some warnings.

10 years agoBugfix for [#29055] node editor / texture node / scale node
Thomas Dinges [Tue, 1 Nov 2011 22:21:21 +0000 (22:21 +0000)]
Bugfix for [#29055] node editor / texture node / scale node
* Node Vector sockets, don't have a PROP_FACTOR any longer.

10 years agoSpace types:
Thomas Dinges [Tue, 1 Nov 2011 20:14:58 +0000 (20:14 +0000)]
Space types:
* Some cleanup, removed references to already deleted *_header.c files.
* Marked SpaceScript as deprecated and removed header. Will keep space for now though, as some script operators are there and Campbell might want to re-use the space later.

10 years ago== Removal of SpaceSound ==
Thomas Dinges [Tue, 1 Nov 2011 19:48:45 +0000 (19:48 +0000)]
== Removal of SpaceSound ==
* Removed old, unused Space Sound space
* Removed data struct and Theme settings
* Old files with an open Audio window will be loaded as Info Space

10 years ago== Cleanup of SpaceImasel ==
Andrea Weikert [Tue, 1 Nov 2011 18:27:09 +0000 (18:27 +0000)]
== Cleanup of SpaceImasel ==
* removed struct for SpaceType and all usages
* SPACE_IMASEL in enum nees to be kept to identify it in old files
* it is replaces with SPACE_EMPTY on load, which is overridden by SPACE_INFO which has same struct members
* also removed theme settings

10 years agoFix #29124: Modifying mesh with mirror and solidify modifiers crashes blender
Sergey Sharybin [Tue, 1 Nov 2011 17:43:30 +0000 (17:43 +0000)]
Fix #29124: Modifying mesh with mirror and solidify modifiers crashes blender

It is corrected fix for #29089 (svn rev 41409). That fix wasn't correct because
it used to set face number from derived mesh on which solidify is applying which
isn't correct for case of constructive modifiers applied on base mesh before
solidify modifier.

Actually nothing special should be performed here to set needed original index
because of ORIGINDEX layer is getting copyed automatically when when copying faces.

10 years agoReverting r41409 (broken fix for #29089)
Andrew Wiggin [Tue, 1 Nov 2011 17:06:10 +0000 (17:06 +0000)]
Reverting r41409 (broken fix for #29089)

r41409 can cause a crash if you delete a face of a mesh that has subsurf & solidify modifiers active

10 years agoFix #29109: bpy.ops.render.render() with scene parameter missed compositing,
Brecht Van Lommel [Tue, 1 Nov 2011 14:51:44 +0000 (14:51 +0000)]
Fix #29109: bpy.ops.render.render() with scene parameter missed compositing,
previous bugfix needed a bit more refining.

10 years agoFix #29101: 2D Tilt on Bezier Curve Bug?
Brecht Van Lommel [Tue, 1 Nov 2011 11:00:08 +0000 (11:00 +0000)]
Fix #29101: 2D Tilt on Bezier Curve Bug?

Changing tilt for 2D curves doesn't really hurt, just makes things not so
clear tosee what's going on because you're changing value which isn't used
at all for 2D curves. Disallwo to run TRANSFORM_OT_tilt operator for 2D curves.

Also made a correct fix for incorrect shortcut for tilt in 3D viewport toolbar,
it was really confusing to have almost the same operators (TRANSFORM_OT_tilt and
TRANSFORM_OT_transform with mode=tilt) in keymap. Better to use tilt operator
in toolbar.

10 years agocorrect header, for some reason gcc doesnt warn about this
Campbell Barton [Tue, 1 Nov 2011 09:47:19 +0000 (09:47 +0000)]
correct header, for some reason gcc doesnt warn about this

10 years agovertex group mirror
Campbell Barton [Tue, 1 Nov 2011 08:11:55 +0000 (08:11 +0000)]
vertex group mirror
- now works in vertex select + weight paint mode.
- added option not to mirror all vertex groups.

10 years agomacro to check if an object type supports vgroups
Campbell Barton [Tue, 1 Nov 2011 06:45:36 +0000 (06:45 +0000)]
macro to check if an object type supports vgroups

10 years agoadded path traversal flag - BPATH_TRAVERSE_SKIP_MULTIFILE,
Campbell Barton [Tue, 1 Nov 2011 06:26:55 +0000 (06:26 +0000)]
added path traversal flag - BPATH_TRAVERSE_SKIP_MULTIFILE,
so path manipulation functions dont run multiple times on the same path in the case of sequence strips where the one directory is used as the base for many images.

10 years agouse math functions for mesh subdivide smooth (easier to follow for bmesh, no function...
Campbell Barton [Tue, 1 Nov 2011 04:19:21 +0000 (04:19 +0000)]
use math functions for mesh subdivide smooth (easier to follow for bmesh, no functional changes).

10 years agoname qtcreator projects based on branch names (if svn is found and its a branch)...
Campbell Barton [Tue, 1 Nov 2011 02:24:40 +0000 (02:24 +0000)]
name qtcreator projects based on branch names (if svn is found and its a branch), was too confusing with multiple IDE's open calling all projects 'Blender'.

10 years agohopefully fix problem with cmake on osx (older gcc version)
Campbell Barton [Tue, 1 Nov 2011 00:34:09 +0000 (00:34 +0000)]
hopefully fix problem with cmake on osx (older gcc version)

10 years agoFix #29084: material/texture nodes crash introduced in 2.60, execdata is being
Brecht Van Lommel [Mon, 31 Oct 2011 17:00:59 +0000 (17:00 +0000)]
Fix #29084: material/texture nodes crash introduced in 2.60, execdata is being
lazely created but this wasn't done in a thread safe way.

10 years agoFix crash in texture nodes, when no derivatives available, other nodes already
Brecht Van Lommel [Mon, 31 Oct 2011 16:44:24 +0000 (16:44 +0000)]
Fix crash in texture nodes, when no derivatives available, other nodes already
did this check.

10 years agoFix: selecting with z-buffer hiding did not work when graphics card settings
Brecht Van Lommel [Mon, 31 Oct 2011 14:08:14 +0000 (14:08 +0000)]
Fix: selecting with z-buffer hiding did not work when graphics card settings
enabled antialiasing, overriding application settings.

The fix for this got lost when the FSAA option was added and later disabled
again. Added it back now, and also disable AA for UI widgets since it makes
them look too blurry, they already do their own AA.

10 years agoOSX: make ZOOM-gesture on trackpads half the speed, added comment for experimental...
Jens Verwiebe [Mon, 31 Oct 2011 12:31:48 +0000 (12:31 +0000)]
OSX: make ZOOM-gesture on trackpads half the speed, added comment for experimental all-time-trackpad assumption

10 years agoCorrection to own commit r41169
Campbell Barton [Mon, 31 Oct 2011 09:52:43 +0000 (09:52 +0000)]
Correction to own commit r41169

10 years agofix [#29089] Faces created for "rims" by solidify modifier have incorrect visibility
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

10 years agouse_verify option to defvert_sync_mapped and defvert_sync was flipped, also minor...
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.

10 years agofix own error r41191 getting id property string lengths.
Campbell Barton [Mon, 31 Oct 2011 01:50:04 +0000 (01:50 +0000)]
fix own error r41191 getting id property string lengths.

10 years agoSculpt UI:
Thomas Dinges [Mon, 31 Oct 2011 00:35:14 +0000 (00:35 +0000)]
Sculpt UI:
* Code cleanup.

10 years agofix [#29098] File save dialog cannot handle extra periods in file name
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

10 years agoAnother Bconf Feature Request. :)
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.

10 years agoBlender Conference Feature Request by Jonathan:
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.

10 years agoWIN32, fix a crash when blender is executed in background mode, patch by kjym3
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

10 years agoChange default values for mix node.
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.

10 years agoCycles: progress printing in background mode, print finished at the end and
Brecht Van Lommel [Sun, 30 Oct 2011 10:12:34 +0000 (10:12 +0000)]
Cycles: progress printing in background mode, print finished at the end and
avoid duplicate prints.

10 years agomake_uv_vert_map() was looping over the texture face for not reason.
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.

10 years agocorrect flags for older GCC's which dont suppport -Wno-deprecated-declarations,
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

10 years agoModifier compilation tweaks (Blender conference commit)
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.

10 years agoFix RelWithDebInfo build.
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.

10 years agoCycles: seed value to get different noise values from renders, there was a patch
Brecht Van Lommel [Sat, 29 Oct 2011 14:27:24 +0000 (14:27 +0000)]
Cycles: seed value to get different noise values from renders, there was a patch
for this but I've implemented it differently.

10 years agoCycles: fix blenderplayer build error.
Brecht Van Lommel [Sat, 29 Oct 2011 14:24:06 +0000 (14:24 +0000)]
Cycles: fix blenderplayer build error.

10 years agobug from revision 2!, error noticed kjym3 on IRC, buffer overrun on lbarray, was...
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.

10 years agoreplace BLI_strtok_r from r41337 with lighter method that doesnt alloc for template_list
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

10 years agoFix: OpenGL renders on graphics cards which do not support non-power-of-two
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.

10 years agoUI list template: committing patch [#26629].
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 for details.

10 years agoBLI_string: Adding the BLI_strtok_r function, which mimics stdlib strtok_r (unavailab...
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!

10 years agoreplace VECCOPY and QUATCOPY with inline funcs.
Campbell Barton [Fri, 28 Oct 2011 12:40:15 +0000 (12:40 +0000)]
replace VECCOPY and QUATCOPY with inline funcs.

10 years agofix for error in gpu.export_shader() was missing *4 (only writing 1/4 of the colorband)
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)

10 years agouse generic path remapping when making all library data local, previously only image...
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)

10 years agofix [#29062] Can not save image as external on a writable path
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

10 years agoprefix common internal operator function names so its possible to assign them breakpo...
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.

10 years agofix [#29063] reprojetion painting : failed to create opengl offscreen buffer
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.

10 years agopatch [#29049] Minor phrasing and grammar patch
Campbell Barton [Fri, 28 Oct 2011 01:10:46 +0000 (01:10 +0000)]
patch [#29049] Minor phrasing and grammar patch

10 years agoRenaming the extensionless "blenderbuttons" to "blender_icons.png"
Joshua Leung [Fri, 28 Oct 2011 00:09:13 +0000 (00:09 +0000)]
Renaming the extensionless "blenderbuttons" to "blender_icons.png"

10 years agoOSX: adapt comments to new behaviour when compiling with gcc-4.6 but GHOST and QT...
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

10 years agoFix player prototype, fix compile for OSX/XCode4.2, use always tablet enabled (test)
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)

10 years agouse const for readonly strings and set some functions to static
Campbell Barton [Thu, 27 Oct 2011 14:41:26 +0000 (14:41 +0000)]
use const for readonly strings and set some functions to static

10 years ago..and now fix linux build since my windows build fix had a lowercase typo
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

10 years agoFix windows build (__func__ macro needs definition from BLI_utildefines.h on MSVC)
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)

10 years agofix [#29044] applying mirror modifier causes crash; something with vertex groups?
Campbell Barton [Thu, 27 Oct 2011 07:54:32 +0000 (07:54 +0000)]
fix [#29044] applying mirror modifier causes crash; something with vertex groups?

10 years agotweak remove_strict_flags so it can be used with gcc's -Wall
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

10 years agoutf8 buffer wasn't being initialized in ghost_event_proc
Campbell Barton [Thu, 27 Oct 2011 06:05:55 +0000 (06:05 +0000)]
utf8 buffer wasn't being initialized in ghost_event_proc

10 years agouse path remapping for all make local functions, patch from Alex Fraser with changes.
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.

10 years agopass image description to image loading functions for more useful error than 'Unknown...
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'.

10 years agobpath
Campbell Barton [Thu, 27 Oct 2011 03:40:12 +0000 (03:40 +0000)]
- loop over all sequence images and pointcache
- option not to loop over library / packed data, expose in bpy.utils.blend_paths()

10 years agoBugfix [#29015] Copy n Paste keyframes and poses broken?
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.

10 years ago- remove bpath iterator and replace all uses with visitor.
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.

10 years agoTypos and formatting fixes
Joshua Leung [Thu, 27 Oct 2011 01:05:55 +0000 (01:05 +0000)]
Typos and formatting fixes

10 years agoSupport more kinds of paths for path re-writing / traversing, patch from Alex Fraser...
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.

10 years agoquiet -Wempty-body and unused warnings
Campbell Barton [Wed, 26 Oct 2011 21:30:08 +0000 (21:30 +0000)]
quiet -Wempty-body and unused warnings

10 years agoedits ontop of Alex's patch from r41292.
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.

10 years agoFix #29030: render operator only used scene property if layers was used, now it
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.

10 years agoFix [#28772] Filepaths are not remmaped after making a library item local
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.

10 years agocmake - set configuration specific defines globally rather than mixing in with c...
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

10 years agoFix compilation error for win32.
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.

10 years agoSVN maintenance.
Guillermo S. Romero [Tue, 25 Oct 2011 13:44:35 +0000 (13:44 +0000)]
SVN maintenance.

10 years agoedits to cmake
Campbell Barton [Tue, 25 Oct 2011 13:41:43 +0000 (13:41 +0000)]
edits to cmake

10 years ago- fix numpad comma replacement which was broken since unicode input was added.
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.

10 years agoLibraries upgrade:
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.

10 years agocmake macro to set less strict flags per file - remove_strict_flags_file(file, file...)
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.

10 years agomisc small edits, remove remaining Id's
Campbell Barton [Tue, 25 Oct 2011 04:01:09 +0000 (04:01 +0000)]
misc small edits, remove remaining Id's

10 years agoupdate is_c() utility function to include '.cc' and '.inl' files.
Campbell Barton [Mon, 24 Oct 2011 23:29:28 +0000 (23:29 +0000)]
update is_c() utility function to include '.cc' and '.inl' files.

10 years agoCycles: svn merge -r41232:41266 ^/trunk/blender
Brecht Van Lommel [Mon, 24 Oct 2011 22:51:44 +0000 (22:51 +0000)]
Cycles: svn merge -r41232:41266 ^/trunk/blender

10 years agoCycles: svn merge -r41225:41232 ^/trunk/blender
Brecht Van Lommel [Mon, 24 Oct 2011 22:32:00 +0000 (22:32 +0000)]
Cycles: svn merge -r41225:41232 ^/trunk/blender

10 years agoCycles: svn merge -r41205:41225 ^/trunk/blender
Brecht Van Lommel [Mon, 24 Oct 2011 20:19:04 +0000 (20:19 +0000)]
Cycles: svn merge -r41205:41225 ^/trunk/blender

10 years ago* Remove view3d.tool_properties reference from UI after removal of this operator.
Thomas Dinges [Mon, 24 Oct 2011 20:02:34 +0000 (20:02 +0000)]
* Remove view3d.tool_properties reference from UI after removal of this operator.

10 years agoCycles: theme changes, some code syncing with trunk.
Brecht Van Lommel [Mon, 24 Oct 2011 19:32:10 +0000 (19:32 +0000)]
Cycles: theme changes, some code syncing with trunk.

10 years agoRemove currently unused IMB_cache_limiter_* function.
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.

10 years agoMovieCache implementation
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.

10 years agoSome small fixes and changes:
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.

10 years agofix [#28961] FCurves.range() returns wrong values for one-point curves (sic!)
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.

10 years agoFix #28949: can't render video to Flash
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.

10 years agofix for error utf8 printing input.
Campbell Barton [Mon, 24 Oct 2011 10:11:47 +0000 (10:11 +0000)]
fix for error utf8 printing input.