6 years agoremove minor differences between these 2 files which are almost exact duplicates...
Campbell Barton [Mon, 7 Oct 2013 12:12:59 +0000 (12:12 +0000)]
remove minor differences between these 2 files which are almost exact duplicates (tsk tsk!)

6 years agorevert r58693. patch [#36233], caused regression (bug report [#36959]).
Campbell Barton [Mon, 7 Oct 2013 11:51:59 +0000 (11:51 +0000)]
revert r58693. patch [#36233], caused regression (bug report [#36959]).

6 years agoFix #36981, Removing Sample line fails during render.
Lukas Toenne [Mon, 7 Oct 2013 09:25:39 +0000 (09:25 +0000)]
Fix #36981, Removing Sample line fails during render.
The SAMPLELINE flag in histogram was set during the BKE_histogram_update_sample_line function. That function in turn is called during every scope update in area draw function, meaning that during render
it constantly gets set. OTOH the operator tries to disable the flag on invoke, which "cancels" the sample line by default. So during render the operator un-setting of the flag has no effect, because the
render job immediatly triggers a redraw, which updates scopes and sets it again.

Moved the flag out of the actual sample line update function into the operator execute. Now only the operator enables/disables overall sample line drawing, while the rest of the update works as before.

6 years agoFix #36980: Color space issue when displaying pixel color in a render
Sergey Sharybin [Mon, 7 Oct 2013 08:06:19 +0000 (08:06 +0000)]
Fix #36980: Color space issue when displaying pixel color in a render

HSV values were calculated from a linear space color, which is
not so much useful and correct. Now RGB(A) buffers will use
color managed color for HSV values.

Still not sure which color to use for HSV when there's only one
channel in a buffer. This part left unchanged for now.

6 years agoRemove unused and meaningless line.
Sergey Sharybin [Mon, 7 Oct 2013 07:53:36 +0000 (07:53 +0000)]
Remove unused and meaningless line.

6 years agoFix for conf instructions for scons...
Bastien Montagne [Mon, 7 Oct 2013 07:42:00 +0000 (07:42 +0000)]
Fix for conf instructions for scons...

6 years agoBuild fix (issue could happen with scons,reported by ebrain on IRC, thanks).
Bastien Montagne [Mon, 7 Oct 2013 07:39:58 +0000 (07:39 +0000)]
Build fix (issue could happen with scons,reported by ebrain on IRC, thanks).

Var declared in an #ifdef DEBUG, but used in an #ifndef NDEBUG…

6 years agoRevert revision 59985, 59986, 60046 and 60067. These were fixes to improve save
Brecht Van Lommel [Sun, 6 Oct 2013 14:32:53 +0000 (14:32 +0000)]
Revert revision 59985, 59986, 60046 and 60067. These were fixes to improve save
and restore of window setups with multiple monitors, but they are also causing
regressions, in particular issues with Blender overlapping the taskbar and the
user preferences opening wrong. We decided to revert to the old behavior for
the release.

See bug #36707 for the full explanation.

6 years ago* Display warning icon for SSS/GPU message.
Thomas Dinges [Sun, 6 Oct 2013 12:22:30 +0000 (12:22 +0000)]
* Display warning icon for SSS/GPU message.

6 years agoCheck the node Add operator's type property before attempting to create a new node...
Lukas Toenne [Sun, 6 Oct 2013 10:49:40 +0000 (10:49 +0000)]
Check the node Add operator's type property before attempting to create a new node. This prevents python exceptions when calling it from the search menu, where the node type is unspecified.
Reported by Sebastian Koenig in unrelated bug report #36968.

6 years agoFix for Output File node operators: added a sanity type check to avoid using invalid...
Lukas Toenne [Sun, 6 Oct 2013 10:28:09 +0000 (10:28 +0000)]
Fix for Output File node operators: added a sanity type check to avoid using invalid node data.
Reported by Sebastian Koenig in unrelated bug report #36968.

6 years agoBetter fix for #36935 and 36316:
Brecht Van Lommel [Sat, 5 Oct 2013 19:56:34 +0000 (19:56 +0000)]
Better fix for #36935 and 36316:

* 32 bit GCC builds now have the SSE BVH optimizations turned off, but still
  compile with SSE flags for better performance.

* White color when rendering on Windows seems to have been unrelated to SSE,
  rather it was a graphics driver not supporting half float textures, added a
  check for that now.

6 years agoFix for my last customdata fix, accidentally left in comments.
Brecht Van Lommel [Sat, 5 Oct 2013 19:56:32 +0000 (19:56 +0000)]
Fix for my last customdata fix, accidentally left in comments.

6 years agorename presets not to use '+' character, also some typo fixes.
Campbell Barton [Sat, 5 Oct 2013 14:19:39 +0000 (14:19 +0000)]
rename presets not to use '+' character, also some typo fixes.

6 years agoreplaced export for OpenSim by Export for SL/OpenSim in Collada export user interface...
Gaia Clary [Sat, 5 Oct 2013 14:10:29 +0000 (14:10 +0000)]
replaced export for OpenSim by Export for SL/OpenSim in Collada export user interface (conforming to Linden Lab document )

6 years agoReplaced opensim by sl+opensim in collada presets (conforming to Linden Lab document...
Gaia Clary [Sat, 5 Oct 2013 14:09:13 +0000 (14:09 +0000)]
Replaced opensim by sl+opensim in collada presets (conforming to Linden Lab document )

6 years agoFix for unnecessary customdata warning with empty meshes.
Brecht Van Lommel [Sat, 5 Oct 2013 13:36:55 +0000 (13:36 +0000)]
Fix for unnecessary customdata warning with empty meshes.

6 years agoFix #36962, "Render emitter" option for hair is ignored in Cycles. Hair particles...
Lukas Toenne [Sat, 5 Oct 2013 12:46:32 +0000 (12:46 +0000)]
Fix #36962, "Render emitter" option for hair is ignored in Cycles. Hair particles use the hide_tris boolean to disable rendering of the emitter, but this was still ANDed with the "experimental" flag.
Hair is not experimental any longer, so this has to be removed.

6 years agorename overlap to holes for isect_point_poly_v2
Campbell Barton [Sat, 5 Oct 2013 12:36:35 +0000 (12:36 +0000)]
rename overlap to holes for isect_point_poly_v2

6 years agoavoid divide by zero with grid fill (when there is no selection)
Campbell Barton [Sat, 5 Oct 2013 11:59:15 +0000 (11:59 +0000)]
avoid divide by zero with grid fill (when there is no selection)

6 years agomore corrections to valgrind hinting.
Campbell Barton [Sat, 5 Oct 2013 04:59:43 +0000 (04:59 +0000)]
more corrections to valgrind hinting.

6 years agouse valgrind hints for memarena for better debugging info when using valgrind.
Campbell Barton [Sat, 5 Oct 2013 04:38:08 +0000 (04:38 +0000)]
use valgrind hints for memarena for better debugging info when using valgrind.
also quiet a false positive in BLI_mempool_free().

6 years agopressing enter over a file-text button is ignored (so enter in the file selector...
Campbell Barton [Fri, 4 Oct 2013 18:34:28 +0000 (18:34 +0000)]
pressing enter over a file-text button is ignored (so enter in the file selector works again).

6 years agoFix cycles hair render UI panel showing for particles that are not hair,
Brecht Van Lommel [Fri, 4 Oct 2013 18:04:29 +0000 (18:04 +0000)]
Fix cycles hair render UI panel showing for particles that are not hair,
patch by Greg Zaal.

6 years agoRemove prints from own r60549, sorry for the noise.
Bastien Montagne [Fri, 4 Oct 2013 17:49:26 +0000 (17:49 +0000)]
Remove prints from own r60549, sorry for the noise.

6 years agocode cleanup: warnings and minor edits.
Campbell Barton [Fri, 4 Oct 2013 17:47:58 +0000 (17:47 +0000)]
code cleanup: warnings and minor edits.

6 years agofix for lasso failing/glitches on overlapping lines, replace scanfill with 2d pixel...
Campbell Barton [Fri, 4 Oct 2013 15:02:05 +0000 (15:02 +0000)]
fix for lasso failing/glitches on overlapping lines, replace scanfill with 2d pixel filling for drawing and selection.

6 years agoAttempt to fix #36935: disable SSE optimizations on 32 bit windows too. Something
Brecht Van Lommel [Fri, 4 Oct 2013 14:47:37 +0000 (14:47 +0000)]
Attempt to fix #36935: disable SSE optimizations on 32 bit windows too. Something
strange is going on here, but I don't think it can be fixed before the release,
if it is worth at all spending time on this.

6 years agoFix obvious bug in particle code (copying normal into nor when in if(ornor) block...
Bastien Montagne [Fri, 4 Oct 2013 14:28:32 +0000 (14:28 +0000)]
Fix obvious bug in particle code (copying normal into nor when in if(ornor) block...), though probably harmless in current code...

6 years agoFix #36930: dynamic topology sculpting with masks gave bad results:
Brecht Van Lommel [Fri, 4 Oct 2013 13:40:21 +0000 (13:40 +0000)]
Fix #36930: dynamic topology sculpting with masks gave bad results:

* The mask was not subdivided properly on splitting edges, which gave interesting
  but definitely wrong fractal-like borders around masks.

* Edge splitting was only done where the mask was < 50%, with the reasoning that
  you can't do a 50% topology update. But this gives an ugly border in the mesh.
  The mask should already make the brush move the vertices only 50%, which means
  that topology updates will also happen less frequent, that should be enough.

6 years agoFix #36948: blender internal viewport render crashes holding shift+Z pressed
Brecht Van Lommel [Fri, 4 Oct 2013 12:30:00 +0000 (12:30 +0000)]
Fix #36948: blender internal viewport render crashes holding shift+Z pressed
to quickly toggle it on/off.

Problem is accessing freed data, now the job is ended immediately. Fix based
on patch from Sergey and investigation from Bastien.

6 years agoCode cleanup: remove unused function
Sergey Sharybin [Fri, 4 Oct 2013 12:22:54 +0000 (12:22 +0000)]
Code cleanup: remove unused function

6 years agoFix related to [#36926] 'scale' Node doesn't work properly.
Bastien Montagne [Fri, 4 Oct 2013 12:11:10 +0000 (12:11 +0000)]
Fix related to [#36926] 'scale' Node doesn't work properly.

Scene/Render "spaces" are actually absolute values, they do not use the input X/Y scale factors, hide them in this case.

Thanks to Lukas for review and improvement!

6 years agofix for lasso selection (in non-zbuf mode) when the line intersected its self.
Campbell Barton [Fri, 4 Oct 2013 10:48:24 +0000 (10:48 +0000)]
fix for lasso selection (in non-zbuf mode) when the line intersected its self.
isect_point_poly_v2() - add argument to check overlapping areas.

6 years agoChanging dither value will now invalidate cached display buffer
Sergey Sharybin [Fri, 4 Oct 2013 10:07:32 +0000 (10:07 +0000)]
Changing dither value will now invalidate cached display buffer

6 years agoFix #36939, Objects with nodes appear in gray in viewport, using Solid shade, and...
Lukas Toenne [Fri, 4 Oct 2013 08:27:54 +0000 (08:27 +0000)]
Fix #36939, Objects with nodes appear in gray in viewport, using Solid shade, and the Blender Engine (or Game Engine).
The "active ID node" concept has become slightly more complex with pynodes. To find the active material or other ID links in a node tree recursively requires a hash key based on the "parent" tree of the
current node group. To avoid returning NULL in case this key is not yet initialized (i.e. ID node has not been activated yet), just accept 0 key as well for the base node tree.

6 years agofix [#36947] "Edge Slide" bugs when "Even" is on
Campbell Barton [Fri, 4 Oct 2013 05:53:02 +0000 (05:53 +0000)]
fix [#36947] "Edge Slide" bugs when "Even" is on

was doing a linear interpolation between points on either side instead of interpolating along the edges.

6 years agofix [#36942] unfreed memory on trackball widget use
Campbell Barton [Fri, 4 Oct 2013 01:10:23 +0000 (01:10 +0000)]
fix [#36942] unfreed memory on trackball widget use

6 years agoTypo in variable name from previous commit, sorry.
Sergey Sharybin [Thu, 3 Oct 2013 16:39:30 +0000 (16:39 +0000)]
Typo in variable name from previous commit, sorry.

6 years agoset mempool debug in the game-engine-player too. also remove redundant mempool includes.
Campbell Barton [Thu, 3 Oct 2013 16:34:00 +0000 (16:34 +0000)]
set mempool debug in the game-engine-player too. also remove redundant mempool includes.

6 years agorigidbody: Flag bodies for validation when changing shape
Sergej Reich [Thu, 3 Oct 2013 16:12:02 +0000 (16:12 +0000)]
rigidbody: Flag bodies for validation when changing shape

This fixes a pretty old crash that occurs when changing the collision
shape to a mesh shape during simulation.

Thanks to Thomas Beck (plasmasolutions) for the report.

svn merge -r60310:60311 ^/branches/soc-2013-rigid_body_sim

6 years agofix crash in editmesh edge-dissolve, when 2 faces shared multiple edges, freed edges...
Campbell Barton [Thu, 3 Oct 2013 15:29:08 +0000 (15:29 +0000)]
fix crash in editmesh edge-dissolve, when 2 faces shared multiple edges, freed edges would be checked.

6 years agofreeing mempool elements now fills freed memory with --debug for debug builds.
Campbell Barton [Thu, 3 Oct 2013 14:44:33 +0000 (14:44 +0000)]
freeing mempool elements now fills freed memory with --debug for debug builds.

6 years agoChanged some labels from Second Life to OpenSim
Gaia Clary [Thu, 3 Oct 2013 14:24:54 +0000 (14:24 +0000)]
Changed some labels from Second Life to OpenSim

6 years agofix for crash dissolving faces, bmesh walkers were using freed mempool elements.
Campbell Barton [Thu, 3 Oct 2013 13:35:57 +0000 (13:35 +0000)]
fix for crash dissolving faces, bmesh walkers were using freed mempool elements.

use a convention for freeing walker-states where freed-dangling pointers aren't left assigned to prevent errors like this happening in future.

6 years agoFix crash starting game engine on linux
Sergey Sharybin [Thu, 3 Oct 2013 13:15:53 +0000 (13:15 +0000)]
Fix crash starting game engine on linux

Issue was caused by bug in mesa #54080 which makes
glXQueryDrawable fail with GLXBadDrawable for any
request with direct context.

Worked around by temporary overriding X error handling
when getting old interval value and disablingintervals
extension if this query fails.

Also added check for glXSwapIntervalEXT which is
apparently NULL here with GLX_EXT_swap_control=1.

6 years agoadd cmake option WITH_MEM_VALGRIND, helps to track down errors with mempool use which...
Campbell Barton [Thu, 3 Oct 2013 12:22:44 +0000 (12:22 +0000)]
add cmake option WITH_MEM_VALGRIND, helps to track down errors with mempool use which sometimes only show up as bugs in very rare cases (because even though the element is freed, the chunk is still allocated).

6 years agoyet another instance dissolve deletes verts it loops over.
Campbell Barton [Thu, 3 Oct 2013 10:50:03 +0000 (10:50 +0000)]
yet another instance dissolve deletes verts it loops over.

6 years agooverlapping faces made join-triangles fail, check for this case and silently ignore...
Campbell Barton [Thu, 3 Oct 2013 10:29:53 +0000 (10:29 +0000)]
overlapping faces made join-triangles fail, check for this case and silently ignore them.

6 years agoaddition to r60523 missed using BM_ITER_MESH_MUTABLE in one place.
Campbell Barton [Thu, 3 Oct 2013 08:02:32 +0000 (08:02 +0000)]
addition to r60523 missed using BM_ITER_MESH_MUTABLE in one place.

6 years agofix [#36923] Merge / Delete vertices crashes for some meshes
Campbell Barton [Thu, 3 Oct 2013 07:06:56 +0000 (07:06 +0000)]
fix [#36923] Merge / Delete vertices crashes for some meshes

add BM_ITER_MESH_MUTABLE which steps before entering the for() loop body and prevents the assert from complaining about removing mesh data while iterating as well as the crash.

this was done in quite a few areas, more may turn up.

6 years agoremove assert recently added to EDBM_backbuf_check and explain odd logic.
Campbell Barton [Thu, 3 Oct 2013 07:02:52 +0000 (07:02 +0000)]
remove assert recently added to EDBM_backbuf_check and explain odd logic.

6 years agofix bug in ED_vgroup_subset_from_select_type, setting negative index in boolean array.
Campbell Barton [Thu, 3 Oct 2013 07:01:32 +0000 (07:01 +0000)]
fix bug in ED_vgroup_subset_from_select_type, setting negative index in boolean array.
also was freeing NULL pointer in vgroup_blend_subset()

6 years agoadd debug mode assert if mesh-data is removed while iterating over it. (can crash).
Campbell Barton [Thu, 3 Oct 2013 06:12:44 +0000 (06:12 +0000)]
add debug mode assert if mesh-data is removed while iterating over it. (can crash).

6 years agofix [#36924] Calling .define(...) on Macro subclass crashes Blender, if subclass...
Campbell Barton [Thu, 3 Oct 2013 05:27:39 +0000 (05:27 +0000)]
fix [#36924] Calling .define(...) on Macro subclass crashes Blender, if subclass wasn't registered

6 years agoconsole: shift pad-enter now clears the line too.
Campbell Barton [Thu, 3 Oct 2013 04:31:41 +0000 (04:31 +0000)]
console: shift pad-enter now clears the line too.

6 years agoadjustments to sculpt cache scaling code, (float/double promotion)
Campbell Barton [Thu, 3 Oct 2013 03:05:41 +0000 (03:05 +0000)]
adjustments to sculpt cache scaling code, (float/double promotion)

6 years agoreal fix for #36695, scale brush stroke with maximum scale component,
Antony Riakiotakis [Wed, 2 Oct 2013 22:46:26 +0000 (22:46 +0000)]
real fix for #36695, scale brush stroke with maximum scale component,
except layer brush where the previous algorithm is used.

6 years agoFix an own regression introduced in the dyntopo cleanup commits. Do not
Antony Riakiotakis [Wed, 2 Oct 2013 22:18:23 +0000 (22:18 +0000)]
Fix an own regression introduced in the dyntopo cleanup commits. Do not
remove a vertex from the pbvh if the only face it was part of was
removed from the pbvh. This should work but no time to investigate now
properly, and better have a solid release. The problem could be seen
when sculpting to open meshes. Some vertices and faces on the boundaries
would become stuck and unresponsive.

6 years agoRevert 60358, it made irregularly scaled objects behave incorrectly, checking out...
Antony Riakiotakis [Wed, 2 Oct 2013 22:18:14 +0000 (22:18 +0000)]
Revert 60358, it made irregularly scaled objects behave incorrectly, checking out different approach here.

6 years agoOSX/GHOST: fix own issue in 60510, should now (hopefully) cover all multiple window...
Jens Verwiebe [Wed, 2 Oct 2013 19:54:24 +0000 (19:54 +0000)]
OSX/GHOST: fix own issue in 60510, should now (hopefully) cover all multiple window combinations

6 years agoFix #36316: dots in cycles render on certain CPUs with 32 bit linux builds.
Brecht Van Lommel [Wed, 2 Oct 2013 19:00:16 +0000 (19:00 +0000)]
Fix #36316: dots in cycles render on certain CPUs with 32 bit linux builds.
There is some sort of problem with the SSE2 code path, but I couldn't find
the cause, maybe a compiler bug due to the large amount of inlining? For
now I've disabled SSE2 optimizatons in 32 bit GCC builds.

6 years agoOSX/GHOST: refine #60409 and better take multiple windows into account
Jens Verwiebe [Wed, 2 Oct 2013 18:49:32 +0000 (18:49 +0000)]
OSX/GHOST: refine #60409 and better take multiple windows into account

6 years agoFixes for cycles Mapping and Vector Transform node:
Brecht Van Lommel [Wed, 2 Oct 2013 17:02:59 +0000 (17:02 +0000)]
Fixes for cycles Mapping and Vector Transform node:

* Keep the Mapping node default type as Point for now, instead of Texture. The
  latter is a better default, but this is breaking API compatibility and it's
  too close to release to expect addons to be fixed in time.

* Vector Transform and Mapping nodes had properties with name "type" to set the
  type of vector, but this conflicts with the node type property, so renamed to
  vector_type now.

6 years agofix [#36919] Cannot delete keyframe of animated simulation parameter if simulation...
Campbell Barton [Wed, 2 Oct 2013 16:37:47 +0000 (16:37 +0000)]
fix [#36919] Cannot delete keyframe of animated simulation parameter if simulation has been disabled

6 years agore-shuffle ifdef for osx to make it more clear
Campbell Barton [Wed, 2 Oct 2013 16:13:24 +0000 (16:13 +0000)]
re-shuffle ifdef for osx to make it more clear

6 years agoOSX: readd ctrl-a for 'select all' in text(-boxes) against my own conviction for...
Jens Verwiebe [Wed, 2 Oct 2013 16:09:09 +0000 (16:09 +0000)]
OSX: readd ctrl-a for 'select all' in text(-boxes) against my own conviction for now - really to be discussed

6 years agoFix cycles OpenCL compile error on AMD, and fix assert in debug builds.
Brecht Van Lommel [Wed, 2 Oct 2013 14:41:04 +0000 (14:41 +0000)]
Fix cycles OpenCL compile error on AMD, and fix assert in debug builds.

6 years agoBugfix: All actions created when keyframing now have their "id-root" set appropriately
Joshua Leung [Wed, 2 Oct 2013 12:14:50 +0000 (12:14 +0000)]
Bugfix: All actions created when keyframing now have their "id-root" set appropriately

This means that it will no longer be possible to accidentally load a nodetree action in
the Action Editor (object-level actions only), resulting in F-Curves getting

6 years agolibmv: fix matrix address being printed instead of actual values
Sergey Sharybin [Wed, 2 Oct 2013 10:18:43 +0000 (10:18 +0000)]
libmv: fix matrix address being printed instead of actual values

6 years agofix [#36913] GHASH_FLAG_ALLOW_DUPES assert and crash in Edge Collapse
Campbell Barton [Wed, 2 Oct 2013 04:12:06 +0000 (04:12 +0000)]
fix [#36913] GHASH_FLAG_ALLOW_DUPES assert and crash in Edge Collapse

6 years agofix regression - convex hull tool leaving new faces unselected.
Campbell Barton [Tue, 1 Oct 2013 18:23:39 +0000 (18:23 +0000)]
fix regression - convex hull tool leaving new faces unselected.

6 years agoOSX/keys: change to OSX conform cmd-a for 'select-all' in text(-boxes)
Jens Verwiebe [Tue, 1 Oct 2013 17:47:08 +0000 (17:47 +0000)]
OSX/keys: change to OSX conform cmd-a for 'select-all' in text(-boxes)

6 years agostyle edits and use macro for prefix check
Campbell Barton [Tue, 1 Oct 2013 16:40:11 +0000 (16:40 +0000)]
style edits and use macro for prefix check

6 years agobugfix [#32346] Node animation, removing nodes keeps FCurves.
Dalai Felinto [Tue, 1 Oct 2013 16:15:52 +0000 (16:15 +0000)]
bugfix [#32346] Node animation, removing nodes keeps FCurves.

The same bug happens for modifiers, but better to address it separately.
Contribution and review by Lukas Toenne and Brecht van Lommel

6 years agoallow knife-project to use sub-pixel length edges.
Campbell Barton [Tue, 1 Oct 2013 15:52:29 +0000 (15:52 +0000)]
allow knife-project to use sub-pixel length edges.

6 years agoFix use of uninitialized variable in recent node tree changes.
Brecht Van Lommel [Tue, 1 Oct 2013 15:37:01 +0000 (15:37 +0000)]
Fix use of uninitialized variable in recent node tree changes.

6 years agoFix blender internal viewport render not using color management settings like
Brecht Van Lommel [Tue, 1 Oct 2013 15:34:43 +0000 (15:34 +0000)]
Fix blender internal viewport render not using color management settings like
view, exposure, looks.

6 years agoUV sculpting was missing curve initialization causing crashes. Reported
Antony Riakiotakis [Tue, 1 Oct 2013 15:04:58 +0000 (15:04 +0000)]
UV sculpting was missing curve initialization causing crashes. Reported
by Sebastian Koenig, thanks!

6 years agoOptimization for recent changes in keyframe selection
Sergey Sharybin [Tue, 1 Oct 2013 14:55:34 +0000 (14:55 +0000)]
Optimization for recent changes in keyframe selection

6 years agochange to ED_armature_bone_rename so theres never any duplicates dictionary items...
Campbell Barton [Tue, 1 Oct 2013 13:33:43 +0000 (13:33 +0000)]
change to ED_armature_bone_rename so theres never any duplicates dictionary items in 'ob->pose->chanhash'
this turned out to be harmless but it did make ghash assert() because the ghash isnt flagged to allow duplicates.

6 years agoadd assert for bone renaming, to check if the chanhash is still valid.
Campbell Barton [Tue, 1 Oct 2013 13:28:59 +0000 (13:28 +0000)]
add assert for bone renaming, to check if the chanhash is still valid.

6 years agofix [#36906] AutoName operator do not update the display of the bone's name in the...
Campbell Barton [Tue, 1 Oct 2013 12:56:25 +0000 (12:56 +0000)]
fix [#36906] AutoName operator do not update the display of the bone's name in the Bone Properties

6 years agoFix issues reported by coverity scan in recent changes to customdata code.
Brecht Van Lommel [Tue, 1 Oct 2013 12:48:41 +0000 (12:48 +0000)]
Fix issues reported by coverity scan in recent changes to customdata code.

6 years agofix [#36435] Crash on unwrap with specific mesh
Campbell Barton [Tue, 1 Oct 2013 12:48:32 +0000 (12:48 +0000)]
fix [#36435] Crash on unwrap with specific mesh

6 years agomake the manipulator work with curve handle selections with normal orientation and...
Campbell Barton [Tue, 1 Oct 2013 12:37:17 +0000 (12:37 +0000)]
make the manipulator work with curve handle selections with normal orientation and individual origins.

6 years agocheck SELECT flags for curves (was checking for nonzero which would break if new...
Campbell Barton [Tue, 1 Oct 2013 12:35:43 +0000 (12:35 +0000)]
check SELECT flags for curves (was checking for nonzero which would break if new files use this field for other flags)

6 years agofix for bug own recent commit [#36904] Snap to Volume is broken with Armature
Campbell Barton [Tue, 1 Oct 2013 12:11:10 +0000 (12:11 +0000)]
fix for bug own recent commit [#36904] Snap to Volume is broken with Armature

this is infact an older bug which was exposed by the recent change.
for now only use the change in behavior for scale/rotation.

6 years agoreplace inline searches for BLI_findindex
Campbell Barton [Tue, 1 Oct 2013 11:44:39 +0000 (11:44 +0000)]
replace inline searches for BLI_findindex

6 years agoFix issues according to codereview page
Sergey Sharybin [Tue, 1 Oct 2013 11:15:24 +0000 (11:15 +0000)]
Fix issues according to codereview page

Mainly just a comment cleanups.

6 years agoYet another fix for node groups localization: The ntreeLocalMerge function can not...
Lukas Toenne [Tue, 1 Oct 2013 09:29:56 +0000 (09:29 +0000)]
Yet another fix for node groups localization: The ntreeLocalMerge function can not be used to free localized node groups, because it is not commonly called to free the localized node trees. Instead these
data blocks are freed using the standard ntreeFreeTree function, so freeing localized node groups has to be done there. This means an ugly loop over G.main to detect localized groups, but should not be a
big problem in practice.

6 years agoMark some CCG funcrions as inlined
Sergey Sharybin [Tue, 1 Oct 2013 09:17:35 +0000 (09:17 +0000)]
Mark some CCG funcrions as inlined

This seems to be giving speedup up to 10% in own tests.

svn merge -r60104:60105 ^/branches/soc-2013-depsgraph_mt

6 years agoFix for own commit r60468: All the localized node groups ended up in the main library...
Lukas Toenne [Tue, 1 Oct 2013 08:55:38 +0000 (08:55 +0000)]
Fix for own commit r60468: All the localized node groups ended up in the main library ... This was because of the G.main check in ntreeCopyTree_internal, which determines whether a node tree gets put
into main or is an independent data block. This can now be controlled by passing an explicit Main pointer, so we can ensure localized node groups don't pollute main.

6 years agofix bug with vector handles in the graph editor when transforming 2 selected points...
Campbell Barton [Tue, 1 Oct 2013 08:30:46 +0000 (08:30 +0000)]
fix bug with vector handles in the graph editor when transforming 2 selected points of a bezt, the unselected handle wouldn't have its value restored on transform cancel.

6 years agofix for error setting vector handles to free when both vector handles were selected...
Campbell Barton [Tue, 1 Oct 2013 08:18:43 +0000 (08:18 +0000)]
fix for error setting vector handles to free when both vector handles were selected but not the mid-point.
only one of the handles would be changed to the HD_FREE.

effected curves and fcurves.

6 years agoFix #36850, Material Node Editor Crash Always.
Lukas Toenne [Tue, 1 Oct 2013 08:18:16 +0000 (08:18 +0000)]
Fix #36850, Material Node Editor Crash Always.
This problem was introduced with pynodes merge in r55373. It's caused by missing localization of node groups in shaders in cases where GLSL + node previews causes threading conflicts. I'm not quite sure why
we didn't do this before, but now all node groups also get localized recursively.

6 years agofix [#36900] single spline handle can't be "scaled"
Campbell Barton [Tue, 1 Oct 2013 07:02:18 +0000 (07:02 +0000)]
fix [#36900] single spline handle can't be "scaled"

this works in the graph editor but didn't for curves, useful functionality to have.

6 years agoaddition to r60465, check for individual centers when positioning the manipulator
Campbell Barton [Tue, 1 Oct 2013 05:39:41 +0000 (05:39 +0000)]
addition to r60465, check for individual centers when positioning the manipulator

6 years agocurve transform: scale handles around their knot when using individual centers.
Campbell Barton [Tue, 1 Oct 2013 05:17:57 +0000 (05:17 +0000)]
curve transform: scale handles around their knot when using individual centers.

6 years agoadd rna path callback for material slots but disable animation.
Campbell Barton [Tue, 1 Oct 2013 04:49:47 +0000 (04:49 +0000)]
add rna path callback for material slots but disable animation.
without this - the info space would report an invalid rna-path when showing the string to change a value.