8 years agoPrint error log to the console if OCIO shader compilation failed
Sergey Sharybin [Sat, 27 Apr 2013 16:34:56 +0000 (16:34 +0000)]
Print error log to the console if OCIO shader compilation failed

8 years agoSome color space issues in sequencer:
Sergey Sharybin [Sat, 27 Apr 2013 15:01:17 +0000 (15:01 +0000)]
Some color space issues in sequencer:

Sequencer was always trying to do GLSL color space
conversion, not respecting user settings at all.

This failed a lot when RGB curves a used in color
management settings.

Now sequencer will fallback if GLSL can not be used
and will also respect user settings (however, draw
pixels are not supported, sequencer always uses 2D

8 years ago"Bug" & usability fix, own collection.
Ton Roosendaal [Sat, 27 Apr 2013 12:54:45 +0000 (12:54 +0000)]
"Bug" & usability fix, own collection.

Color Pickers in Blender support precision editing with holding Shift key.
Unfortunately, on first click the picker cursor moves to the mouse position,
making the precision dragging quite useless.

Now, if you hold Shift, the picker editing will only apply the delta motion
of your mouse drags, making it much nicer for fine tuning of color grades
in Sequencer or Compositor.

8 years agoFix #35113: solidify modifier not preserving clamp option on duplicating the
Brecht Van Lommel [Sat, 27 Apr 2013 12:54:31 +0000 (12:54 +0000)]
Fix #35113: solidify modifier not preserving clamp option on duplicating the
object or modifier.

8 years agoFix part of #34233: bad alpha blending for 2D image painting. This is a very
Brecht Van Lommel [Sat, 27 Apr 2013 12:51:23 +0000 (12:51 +0000)]
Fix part of #34233: bad alpha blending for 2D image painting. This is a very
old issue, the formulas here were never quite right, should all work ok now
with byte and float images.

Some differences:

* Colors with zero alpha from the background will never have an influence, so
  you don't get alpha fringes when painting over such areas. This does give
  hard edges when looking at the RGB channels alone, but there's no way to
  avoid that and fringes at the same time, same behavior as other painting apps.

* Add/Subtract/Multiply/Lighten/Darken now leave the alpha channel unchanged
  and work only the RGB channels, again same behavior as many other apps.

* Erase/Add alpha now compensates for premultiplied float images to keep the
  straight RGB colors the same.

Next: fix projection painting.

8 years agoBGE: Small fix to allow clip alpha to work with alpha shadows.
Mitchell Stokes [Sat, 27 Apr 2013 08:37:41 +0000 (08:37 +0000)]
BGE: Small fix to allow clip alpha to work with alpha shadows.

8 years agoFix #35102: crash with experimental cycles displacement feature due to
Brecht Van Lommel [Sat, 27 Apr 2013 02:54:24 +0000 (02:54 +0000)]
Fix #35102: crash with experimental cycles displacement feature due to
uninitialized memory usage.

8 years agofix for own commit r56204, wasnt checking edges exist before adding.
Campbell Barton [Sat, 27 Apr 2013 01:16:38 +0000 (01:16 +0000)]
fix for own commit r56204, wasnt checking edges exist before adding.

8 years agoreal fix for [#35097], (curve cap flipping).
Campbell Barton [Fri, 26 Apr 2013 21:04:12 +0000 (21:04 +0000)]
real fix for [#35097], (curve cap flipping).

previous commit was incorrect, the face flipping depended on the orientation of the curve.

fix by passing the bevel direction to the fill function so we can have a reliable front/back.

This also gives some speedup for all curve filling since we can avoid calculating the normal since its already known.

8 years agofix [#35097] only one curve cap is visible while backface culling is enabled - (again)
Campbell Barton [Fri, 26 Apr 2013 20:04:58 +0000 (20:04 +0000)]
fix [#35097] only one curve cap is visible while backface culling is enabled - (again)
also replace array copying with memcpy.

8 years agofix for regression where tessface weren't recalculated when running loopcut outside...
Campbell Barton [Fri, 26 Apr 2013 19:25:56 +0000 (19:25 +0000)]
fix for regression where tessface weren't recalculated when running loopcut outside of a macro.

8 years agoFixes for color management:
Sergey Sharybin [Fri, 26 Apr 2013 18:56:15 +0000 (18:56 +0000)]
Fixes for color management:

- Sequencer preview was clamping float buffers
- ACES color space wasn't correct, was noticeable when
  applying display processor from linear space to display.
- Extended sRGB LUT to sRGBf from nuke-default config.
  Makes sequencer behave much better in sRGB space.

8 years agofix for recent commit that allowed incorrectly flushed face selection.
Campbell Barton [Fri, 26 Apr 2013 18:45:05 +0000 (18:45 +0000)]
fix for recent commit that allowed incorrectly flushed face selection.

8 years agoRevert 56319, misunderstood API
Sergey Sharybin [Fri, 26 Apr 2013 18:25:49 +0000 (18:25 +0000)]
Revert 56319, misunderstood API

This was completely skipping BA step when point
goes behind the camera.

8 years agoedgeslide fixes/tweaks
Campbell Barton [Fri, 26 Apr 2013 18:12:05 +0000 (18:12 +0000)]
edgeslide fixes/tweaks
* re-executing edgeslide was using initial mouse coords only.
* allow negative smooth
* allow more then 10 cuts in RNA limits.

8 years agoadd support for macro redo if all operators in the macro have an exec()
Campbell Barton [Fri, 26 Apr 2013 17:36:54 +0000 (17:36 +0000)]
add support for macro redo if all operators in the macro have an exec()
this fixes [#35079]

8 years agoadd exec() to loopcut so it supports redo.
Campbell Barton [Fri, 26 Apr 2013 17:29:42 +0000 (17:29 +0000)]
add exec() to loopcut so it supports redo.

8 years agogame engine: Use 0.04 as default collision margin
Sergej Reich [Fri, 26 Apr 2013 16:27:20 +0000 (16:27 +0000)]
game engine: Use 0.04 as default collision margin

0 is to unstable as a default.

8 years agoFix for BA possible move bundles behind the camera
Sergey Sharybin [Fri, 26 Apr 2013 15:43:20 +0000 (15:43 +0000)]
Fix for BA possible move bundles behind the camera

In some cases (was noticed on not good enough keyframe
pair) bundle adjuster could have moved bundles behind
the camera.

This could indeed lead to lower rewprojection error but
this is just pointless thing to do.

Now added check to residuals functor which will return
false to Ceres in cases point moved behind the camera
to prevent such issues.

8 years agofix/feature [#35085] Loop cut slide
Campbell Barton [Fri, 26 Apr 2013 15:05:19 +0000 (15:05 +0000)]
fix/feature [#35085] Loop cut slide

Loop cut slide now works with multicut.

issue is that since edge slide now supports more configurations, cases where loop-cut-slide silently failed before,
now slide (albeit in an awkward way at times).

Fix this my adjusting the selection of after loopcut so edge slide can properly operate on it.

8 years agoFix image painting not adding alpha when 2D painting in the image editor. This
Brecht Van Lommel [Fri, 26 Apr 2013 14:43:38 +0000 (14:43 +0000)]
Fix image painting not adding alpha when 2D painting in the image editor. This
code got lost after the optimizations in revision 55033.

8 years agoFix 35091: Blender internal does not render face texture alpha
Sergey Sharybin [Fri, 26 Apr 2013 14:32:06 +0000 (14:32 +0000)]
Fix 35091: Blender internal does not render face texture alpha

Issue was introduced in svn rev54374.

Now made it so image's flag from imagewrap*() argument
is checked instead of using tex->ima, which seems how
this functions were supposed to work.

Doublechecking on this change is really welcome!

8 years agoFix preview render not starting in some cases, now starts the preview rendering
Brecht Van Lommel [Fri, 26 Apr 2013 13:47:57 +0000 (13:47 +0000)]
Fix preview render not starting in some cases, now starts the preview rendering
job if no render result is found and no preview render job is already running.

8 years agoBugfix [#34645] NlaStrip Tweak Mode - No automatic action length sync on exit
Joshua Leung [Fri, 26 Apr 2013 13:42:55 +0000 (13:42 +0000)]
Bugfix [#34645] NlaStrip Tweak Mode - No automatic action length sync on exit

Originally I was thinking of not restoring this functionality (see report for
further details). However, upon rechecking the code, it seems that there was
actually a define set up for this already, but which wasn't actually hooked up
yet. So, this commit basically exposes this option ("Sync Length") which ensures
that when exiting tweak mode on a NLA Strip, that strip instance (and not other
users of the same action) will be updated to include the newly added keyframes.
This option is not enabled by default, and shouldn't really be needed in most
("intended") workflows.

8 years agofix for out of bounds memory access in solidify modifier (hidden by guardedalloc).
Campbell Barton [Fri, 26 Apr 2013 11:31:54 +0000 (11:31 +0000)]
fix for out of bounds memory access in solidify modifier (hidden by guardedalloc).

8 years agoadd subsurf limits, in RNA, there were none, but subsurf would assert at 29.
Campbell Barton [Fri, 26 Apr 2013 11:30:16 +0000 (11:30 +0000)]
add subsurf limits, in RNA, there were none, but subsurf would assert at 29.

Checked and subsurf level 11 gives over 3 million faces from a single triangle. So use this as a limit.

8 years agoFix #35082: Blender Freeze when change smoke domain setting
Sergey Sharybin [Fri, 26 Apr 2013 08:30:55 +0000 (08:30 +0000)]
Fix #35082: Blender Freeze when change smoke domain setting

Issue was introduced by svn rev56273 and was caused by
both smokeModifier_do and smokeModifier_reset (which is
called from smokeModifier_do) do mutex lock/unlock.
This lead to quite undefined behavior caused by the same
thread released mutex twice.

Solved by not locking mutex from inside routines calling
from smokeModifier_process -- mutex is locked in parent
function anyway.

8 years agoFix a few more cases where an operator should not show in the search menu.
Brecht Van Lommel [Fri, 26 Apr 2013 02:44:21 +0000 (02:44 +0000)]
Fix a few more cases where an operator should not show in the search menu.

8 years agoFix #35080: freestyle Fill Range by Selection operator giving error when invoked
Brecht Van Lommel [Fri, 26 Apr 2013 02:29:31 +0000 (02:29 +0000)]
Fix #35080: freestyle Fill Range by Selection operator giving error when invoked
without a linestyle.

8 years agoFix #34172: cycles BVH build crashing in some rare circumstances on 32 bit linux.
Brecht Van Lommel [Fri, 26 Apr 2013 02:18:29 +0000 (02:18 +0000)]
Fix #34172: cycles BVH build crashing in some rare circumstances on 32 bit linux.

The problem was (again) the x86 extended precision float register being used for
one float value while the other was rounded to lower precision. This caused the
strictly weak order requirement for std::sort to be broken.

8 years agogame engine: Use bullet's default contact processing theshold
Sergej Reich [Thu, 25 Apr 2013 19:50:54 +0000 (19:50 +0000)]
game engine: Use bullet's default contact processing theshold

Blender's old default of 1 was too small here.
Now we don't override the default.
If it's really needed to use a smaller value here, the property should
be first exposed in the ui, but don't think this is necessary.

Fixes [#35076] Dynamic objects have periodic glitch in velocity when on an incline

8 years agorigidbody: Code cleanup
Sergej Reich [Thu, 25 Apr 2013 19:50:51 +0000 (19:50 +0000)]
rigidbody: Code cleanup

Remove outdated comment.

8 years agoFix [#34545] Render layer name is unwantedly translated in composite node editor
Bastien Montagne [Thu, 25 Apr 2013 17:40:08 +0000 (17:40 +0000)]
Fix [#34545] Render layer name is unwantedly translated in composite node editor

Some enums' items actually are generated from data (like the render layers of compo nodes), so they should not be translated. Added a PROP_ENUM_NO_TRANSLATE new RNA flag to tag those enums (only found those for nodes, but may be more of them around).

Also fix similar issue in main list of render layers (Py UI code! :P ).

8 years agostyle cleanup
Campbell Barton [Thu, 25 Apr 2013 16:35:57 +0000 (16:35 +0000)]
style cleanup

8 years agominor fixes for freestyle
Sv. Lockal [Thu, 25 Apr 2013 16:23:23 +0000 (16:23 +0000)]
minor fixes for freestyle
- update copying code for linestyles to copy gaps
- update copying code for freestyle line modifiers to copy mapping flags and seeds
- fix drawing code for Material modifiers after a recent refactoring

8 years agoindividual inset was missing relative option.
Campbell Barton [Thu, 25 Apr 2013 16:14:04 +0000 (16:14 +0000)]
individual inset was missing relative option.

8 years agoFix freestyle crash due to freed memory access. The render data needs to be
Brecht Van Lommel [Thu, 25 Apr 2013 15:59:15 +0000 (15:59 +0000)]
Fix freestyle crash due to freed memory access. The render data needs to be
freed first, and then the scene that it used.

8 years agoFix part of #34640: vertex color blur brush would average face corner colors
Brecht Van Lommel [Thu, 25 Apr 2013 14:29:19 +0000 (14:29 +0000)]
Fix part of #34640: vertex color blur brush would average face corner colors
at vertices for the entire mesh, which meant that discontinuous face colors
would be lost for unrelated parts of the mesh too. Now only vertices within
the brush radius will be affected.

8 years agoFix #35077: cycles incorrectly rendered an empty with dupligroup that was
Brecht Van Lommel [Thu, 25 Apr 2013 14:16:24 +0000 (14:16 +0000)]
Fix #35077: cycles incorrectly rendered an empty with dupligroup that was
dupliverted by its parent.

8 years agoFix part of #34640: colors darkening when using the vertex paint blur tool.
Brecht Van Lommel [Thu, 25 Apr 2013 14:16:22 +0000 (14:16 +0000)]
Fix part of #34640: colors darkening when using the vertex paint blur tool.

The problem was that vertex colors only have 8 bits of precision, and integer
division always rounds down, so after some color blending iterations everything
gets darker. Instead use integer division that behaves like round() instead of
floor() for blending operations.

8 years agofix:#35073 face normals calculation used wrong mloop index
Gaia Clary [Thu, 25 Apr 2013 13:28:32 +0000 (13:28 +0000)]
fix:#35073 face normals calculation used wrong mloop index

8 years agoFix #35074: Image editor shows color banding on rendered images (even with dither...
Sergey Sharybin [Thu, 25 Apr 2013 12:02:56 +0000 (12:02 +0000)]
Fix #35074: Image editor shows color banding on rendered images (even with dither set to 2.0)

Mistake in one of changes to GLSL display function,
missed fallback mode in case dither is non-zero,

8 years agoruler tweak: don't, snap to edit-object, because it didnt work well when modifiers...
Campbell Barton [Thu, 25 Apr 2013 11:46:07 +0000 (11:46 +0000)]
ruler tweak: don't, snap to edit-object, because it didnt work well when modifiers are applied in editmode.

8 years agoruler snapping
Campbell Barton [Thu, 25 Apr 2013 10:14:19 +0000 (10:14 +0000)]
ruler snapping
- draw snap circle to make it more obvious when snapping succeeds.
- when not in wire-view, snap to the surface when adding new rulers.

8 years agoBugfix [#35075] Physics Panel of Particles Fluid is Truncated
Joshua Leung [Thu, 25 Apr 2013 10:05:49 +0000 (10:05 +0000)]
Bugfix [#35075] Physics Panel of Particles Fluid is Truncated

Some RNA Properties were not updated in UI scripts after a recent refactoring
there removing "use_" prefix from some of the boolean properties (strangely
though, while every other property attached to SPHFluidSettings.flag has gone
from "use_factor_blah" to "factor_blah", use_factor_density still keeps the old

8 years agoruler snap adjustments
Campbell Barton [Thu, 25 Apr 2013 09:39:03 +0000 (09:39 +0000)]
ruler snap adjustments
- when in wireframe mode: don't snap to faces, instead snap to the closest edge/vertex.
- when not in wireframe mode: snap to the front-most element (was a problem that it could snap to an edge/vert behind the face)
- reduce the distance for selecting ruler points, was too easy to accidentally drag a ruler.

8 years agofix [#35072] View name of 3Dview is clamped in Japanese
Campbell Barton [Thu, 25 Apr 2013 08:13:46 +0000 (08:13 +0000)]
fix [#35072] View name of 3Dview is clamped in Japanese
just increase size of string to allow for utf8 chars.

8 years agoFix #29932 Left Shift + Numpad 1,2,3 not Aligning to Active
Francisco De La Cruz [Thu, 25 Apr 2013 05:32:32 +0000 (05:32 +0000)]
Fix #29932 Left Shift + Numpad 1,2,3 not Aligning to Active

Intermediate Shift+Key messages were resetting modifier flags.

8 years agoFix build error with scons + msvc, needs pthread include.
Brecht Van Lommel [Thu, 25 Apr 2013 00:06:43 +0000 (00:06 +0000)]
Fix build error with scons + msvc, needs pthread include.

8 years agoFix two more high DPI / retina draw issues with running jobs in info header and
Brecht Van Lommel [Wed, 24 Apr 2013 23:09:29 +0000 (23:09 +0000)]
Fix two more high DPI / retina draw issues with running jobs in info header and
the node tree name in the node editor.

8 years agoFix #34806: rigid body world settings were not copied with a full scene copy.
Brecht Van Lommel [Wed, 24 Apr 2013 23:09:25 +0000 (23:09 +0000)]
Fix #34806: rigid body world settings were not copied with a full scene copy.

Now copying a scene will also duplicate groups that consist entirely of objects
that are duplicated with the scene. The rigid body world will then also pointers
to these new groups.

8 years agoFix crash going to a scene with no camera, with an inactive 3D viewport space.
Brecht Van Lommel [Wed, 24 Apr 2013 23:09:22 +0000 (23:09 +0000)]
Fix crash going to a scene with no camera, with an inactive 3D viewport space.

The regions of the space are stored in a different place depending if it is
active or if another space is in use. The code here was iterating over both
but it should be only one because the other might contain regions of another

8 years agoFix rigid body world Solver Iterations not showing in UI and throwing python error.
Brecht Van Lommel [Wed, 24 Apr 2013 23:09:19 +0000 (23:09 +0000)]
Fix rigid body world Solver Iterations not showing in UI and throwing python error.

8 years agominor fixes
Campbell Barton [Wed, 24 Apr 2013 20:19:01 +0000 (20:19 +0000)]
minor fixes
- build with netbsd works again.
- select uv more/less was crashing when called outside image space.
- node RNA property update was crashing when not called in node space.

8 years agoFix #34714: cycles viewport render would restart when minimizing and unminimizing
Brecht Van Lommel [Wed, 24 Apr 2013 20:12:12 +0000 (20:12 +0000)]
Fix #34714: cycles viewport render would restart when minimizing and unminimizing
a maximized Blender window in Ubuntu Unity. The window size would slightly change
as part of the unminimize effect.

Now cycles waits 0.2 seconds before restarting rendering after a viewport resize,
also a bit less flickery when changing the 3d view size in Blender itself.

8 years agoFix cycles build error, RNA C++ API did not properly handle output parameters.
Brecht Van Lommel [Wed, 24 Apr 2013 19:21:18 +0000 (19:21 +0000)]
Fix cycles build error, RNA C++ API did not properly handle output parameters.

8 years agoFix flickering black tiles in preview render, after viewport render commit, it's
Brecht Van Lommel [Wed, 24 Apr 2013 19:21:16 +0000 (19:21 +0000)]
Fix flickering black tiles in preview render, after viewport render commit, it's
nicer when the new preview draws over the old one.

The code was changed so that the render result is freed all the time because
freestyle manipulates render layers. Now it only does it when freestyle is
enabled so cycles and regular blender internal can still avoid it.

8 years agoFix blender internal preview rendering continuously restarting after recent
Brecht Van Lommel [Wed, 24 Apr 2013 19:21:14 +0000 (19:21 +0000)]
Fix blender internal preview rendering continuously restarting after recent
viewport render changes.

Actually was an older issue that would cause unnecessary preview render restarts
if the render result was not allocated before it was drawn. Now the render result
is being reallocated each time for freestyle which made the issue worse.

8 years agorna api function scene.ray_cast now returns the object and its matrix (incase its...
Campbell Barton [Wed, 24 Apr 2013 17:49:13 +0000 (17:49 +0000)]
rna api function scene.ray_cast now returns the object and its matrix (incase its a dupli).

8 years agoFix #34783: smoke simulation crash when changing frame while preview rendering.
Brecht Van Lommel [Wed, 24 Apr 2013 17:31:09 +0000 (17:31 +0000)]
Fix #34783: smoke simulation crash when changing frame while preview rendering.

Added a mutex lock for smoke data access. The render was already working with a
copy of the volume data, so it's just a short lock to copy things and should not
block the UI much.

8 years agoFix #35068: bpy.ops.node.output_file_add_socket() now works on the active node
Brecht Van Lommel [Wed, 24 Apr 2013 16:59:56 +0000 (16:59 +0000)]
Fix #35068: bpy.ops.node.output_file_add_socket() now works on the active node
if there is no "node" in the context, for scripting convenience.

8 years agoFix for #34739 and #35060, avoid ambiguity in compositor viewer nodes.
Lukas Toenne [Wed, 24 Apr 2013 16:36:50 +0000 (16:36 +0000)]
Fix for #34739 and #35060, avoid ambiguity in compositor viewer nodes.

The design changes coming with pynodes for the node editor allow editing multiple node groups or pinning. This is great for working on different node groups without switching between them all the time, but it causes a problem for viewer nodes: these nodes all write to the same Image data by design, causing access conflicts and in some cases memory corruption. This was not a problem before pynodes because the editor would only allow 1 edited node group at any time. With the new flexibility of node editors this restriction is gone.

In order to avoid concurrent write access to the viewer image buffer and resolve the ambiguity this patch adds an "active viewer key" to the scene->nodetree (added in bNodeTree instead of Scene due to otherwise circular DNA includes). This key identifies a specific node tree/group instance, which enables the compositor to selectively enable only 1 viewer node.

The active viewer key is switched when opening/closing node groups (push/pop on the snode->treepath stack) or when selecting a viewer node. This way only the "last edited" viewer will be active.

Eventually it would be nicer if each viewer had its own buffer per node space so one could actually compare viewers without switching. But that is a major redesign of viewer nodes and images, not a quick fix for bcon4 ...

8 years agoFix #35008: compositing nodes viewer border (ctrl + B) not working correct inside...
Brecht Van Lommel [Wed, 24 Apr 2013 15:39:19 +0000 (15:39 +0000)]
Fix #35008: compositing nodes viewer border (ctrl + B) not working correct inside node groups.

8 years agoallow to scale and rotate from edge/vertex slide.
Campbell Barton [Wed, 24 Apr 2013 15:15:01 +0000 (15:15 +0000)]
allow to scale and rotate from edge/vertex slide.

8 years agofix for crash changing transform modes rotate/edge-slide/grab. setCustomPoints()...
Campbell Barton [Wed, 24 Apr 2013 15:06:42 +0000 (15:06 +0000)]
fix for crash changing transform modes rotate/edge-slide/grab. setCustomPoints() assumed allocated member was big enough which wasnt the case when switching from rotate.

8 years agoFix #35063: GLSL texture node Value output was not outputting alpha.
Brecht Van Lommel [Wed, 24 Apr 2013 15:05:43 +0000 (15:05 +0000)]
Fix #35063: GLSL texture node Value output was not outputting alpha.

8 years agoFix material node editor not working when Blender Game is selected as render engine.
Brecht Van Lommel [Wed, 24 Apr 2013 15:05:40 +0000 (15:05 +0000)]
Fix material node editor not working when Blender Game is selected as render engine.

8 years agouse more rna-constant name for bevel clamping.
Campbell Barton [Wed, 24 Apr 2013 14:14:54 +0000 (14:14 +0000)]
use more rna-constant name for bevel clamping.

8 years agofix relating to r56260, when in vertex paint mode the mesh would have tessfaces alloc...
Campbell Barton [Wed, 24 Apr 2013 13:53:09 +0000 (13:53 +0000)]
fix relating to r56260, when in vertex paint mode the mesh would have tessfaces allocated, which prevented baking from updating vertex colors.
baking now clears tessfaces.

8 years agofix glitch where vertex baking wouldn't always refresh the mesh.
Campbell Barton [Wed, 24 Apr 2013 13:12:29 +0000 (13:12 +0000)]
fix glitch where vertex baking wouldn't always refresh the mesh.

8 years agoFix bug #34611: bevel overlap limit
Howard Trickey [Wed, 24 Apr 2013 12:39:37 +0000 (12:39 +0000)]
Fix bug #34611: bevel overlap limit
The previous fix limited overlap, but is sometimes
too conservative, and artists want way to turn off
the limiting, so added 'Allow Overlap' option to

8 years agofix [#34657] Smoothing will not be updated in object mode, when hiding faces in edit...
Campbell Barton [Wed, 24 Apr 2013 12:07:13 +0000 (12:07 +0000)]
fix [#34657] Smoothing will not be updated in object mode, when hiding faces in edit mode and changing shape.
remove the option to skip hidden faces in BM_mesh_normals_update, use openmp to speedup recalculation for high poly meshes.

8 years agofix for mistake in own recent commit r56249 with rna_EffectorWeight_path
Campbell Barton [Wed, 24 Apr 2013 07:40:55 +0000 (07:40 +0000)]
fix for mistake in own recent commit r56249 with rna_EffectorWeight_path

8 years agosimple optimizations for bvhtree_from_mesh_faces() for editmesh, was quite inefficien...
Campbell Barton [Wed, 24 Apr 2013 00:25:12 +0000 (00:25 +0000)]
simple optimizations for bvhtree_from_mesh_faces() for editmesh, was quite inefficient (unneeded loops, not breaking out of face loop early).
also correct own oversight - use TRANSFORM_DIST_MAX_RAY rather then when checking for max value in snapDerivedMesh.

8 years agoFix for broken Material color/alpha/thickness modifiers.
Tamito Kajiyama [Wed, 24 Apr 2013 00:14:16 +0000 (00:14 +0000)]
Fix for broken Material color/alpha/thickness modifiers.
Reverted part of the trunk revision 56234 (RNA attribute consistency edits).

8 years agoalternate fix for [#24887] - r33294.
Campbell Barton [Tue, 23 Apr 2013 23:57:27 +0000 (23:57 +0000)]
alternate fix for [#24887] - r33294.

Casting a ray onto an editmesh was building a derivedMesh, raytree, then freeing for every ray-cast.
Noticed while using ruler+snapping in editmode.

Instead of attempting to align the MFace and edit-mesh tessfaces, just use editmesh for ray-casting.

8 years agoFix for full-sample anti-aliasing (FSAA) not working with Freestyle.
Tamito Kajiyama [Tue, 23 Apr 2013 22:40:13 +0000 (22:40 +0000)]
Fix for full-sample anti-aliasing (FSAA) not working with Freestyle.

Reverted the trunk revision 56136 and part of revision 56127 concerning the local Main
for Freestyle and temporary scene generation for stroke rendering.

The function do_merge_fullsample() in pipeline.c has access to the Scene of each Render,
so that the temporary Scene generated by Freestyle has to be kept for FSAA even after
stroke rendering has been done.  By the same token, the local Main has been moved from
the BlenderStrokeRenderer class to Render.  It is noted that free_all_freestyle_renders()
in pipeline.c is intended to get the temporary Scene of each Render released specifically
taking account of the FSAA case.

8 years agouse string escaping when renaming animation paths - BKE_animdata_fix_paths_rename()
Campbell Barton [Tue, 23 Apr 2013 20:24:10 +0000 (20:24 +0000)]
use string escaping when renaming animation paths - BKE_animdata_fix_paths_rename()

8 years agofix [#34958] keyframe many items would fail if there was a (") in the text.
Campbell Barton [Tue, 23 Apr 2013 20:10:22 +0000 (20:10 +0000)]
fix [#34958] keyframe many items would fail if there was a (") in the text.

8 years agoAnother little fix for #35010. Added better labeling for node groups, so it's possibl...
Lukas Toenne [Tue, 23 Apr 2013 17:49:26 +0000 (17:49 +0000)]
Another little fix for #35010. Added better labeling for node groups, so it's possible to see which node group type the sockets in the node tree view belong to. Otherwise would be virtually impossible to use it.

8 years agoremove negated string macros from BLI_utildefines.h, were unused and can just use...
Campbell Barton [Tue, 23 Apr 2013 16:27:45 +0000 (16:27 +0000)]
remove negated string macros from BLI_utildefines.h, were unused and can just use !STREQ(...)

8 years agoStrip unneeded folders and files from numpy
Sergey Sharybin [Tue, 23 Apr 2013 15:51:41 +0000 (15:51 +0000)]
Strip unneeded folders and files from numpy

8 years agofix [#34894] Ruler/Protractor: While it's active, one can open the file browser for...
Campbell Barton [Tue, 23 Apr 2013 15:42:41 +0000 (15:42 +0000)]
fix [#34894] Ruler/Protractor: While it's active, one can open the file browser for file saving + Crash

8 years agoBuildbot tweaks
Sergey Sharybin [Tue, 23 Apr 2013 15:29:39 +0000 (15:29 +0000)]
Buildbot tweaks

Add numpy installation to blender player configuration,
this is so because player is building first and it installs
python, which prevented numpy installation from blender

8 years agofix [#35055] Crash in Edit Source feature for multilevel menus
Campbell Barton [Tue, 23 Apr 2013 15:22:22 +0000 (15:22 +0000)]
fix [#35055] Crash in Edit Source feature for multilevel menus
dont show the option when operating on a menu since its not supported.

8 years agofix for issues with ruler
Campbell Barton [Tue, 23 Apr 2013 14:58:23 +0000 (14:58 +0000)]
fix for issues with ruler
- disabling ruler snap wasn't setting the points depth back to its previous value before snapping.
- adding a new ruler uses the depth of the previous active ruler (fallback to view center as before)
- deleting the ruler now sets the prev/next ruler active.

8 years agoFix #35058: Mesh > Edge/Face > Bevel would do vertex bevel if that was used in
Brecht Van Lommel [Tue, 23 Apr 2013 14:12:12 +0000 (14:12 +0000)]
Fix #35058: Mesh > Edge/Face > Bevel would do vertex bevel if that was used in
the operator the previous time. However for these menus it makes more sense to
always use edge/face bevel and to leave vertex bevel for Mesh > Vertex > Bevel.

8 years agominor changes to get numpy working with locally bundled python.
Campbell Barton [Tue, 23 Apr 2013 13:51:20 +0000 (13:51 +0000)]
minor changes to get numpy working with locally bundled python.
- enable site-packages for bundled python distrobution, py3.2 had a problem where it would try to parse headers we didnt include, but its resolved now.
- workaround for glitch I was having on arch-linux where lib64 would be be used for the bundled python directory when it was just a symlink.

8 years agoFix missing feature: fit mask stencil to aspect.
Antony Riakiotakis [Tue, 23 Apr 2013 11:34:18 +0000 (11:34 +0000)]
Fix missing feature: fit mask stencil to aspect.

8 years agoFix issue reported by Campbell: Move texture existence check out of loop
Antony Riakiotakis [Tue, 23 Apr 2013 11:02:36 +0000 (11:02 +0000)]
Fix issue reported by Campbell: Move texture existence check out of loop
and exit ovelay display early. Avoids possible garbage value reading.

8 years agoedit to r56235, min/max are common abbreviations used in rna.
Campbell Barton [Tue, 23 Apr 2013 10:28:13 +0000 (10:28 +0000)]
edit to r56235, min/max are common abbreviations used in rna.

8 years agoAdded registerable size properties for node types in RNA. This allows pynodes to...
Lukas Toenne [Tue, 23 Apr 2013 09:51:32 +0000 (09:51 +0000)]
Added registerable size properties for node types in RNA. This allows pynodes to define min/max and default width for nodes. Height is also registerable, but will be ignored for the standard node layout doable with pynodes atm (height is calculated automatically based on sockets and extra buttons). It might be usable in the future, for now just added for completeness.

8 years agorna attribute consistency edits, use common prefix for booleans.
Campbell Barton [Tue, 23 Apr 2013 07:06:29 +0000 (07:06 +0000)]
rna attribute consistency edits, use common prefix for booleans.

8 years agostyle cleanup
Campbell Barton [Tue, 23 Apr 2013 05:29:06 +0000 (05:29 +0000)]
style cleanup

8 years agoBugfix [#34869] Switching actions does not trigger animation refresh
Joshua Leung [Tue, 23 Apr 2013 01:54:29 +0000 (01:54 +0000)]
Bugfix [#34869] Switching actions does not trigger animation refresh

Changing actions via RNA (or apparently from the Action Editor browse menu too)
didn't perform all the necessary updates/tagging/recalc needed to have the
results of the new action get immediately applied in the 3D view. This caused
problems for exporters, as the first frames exported would be incorrect (though
this could probably be worked around by manually stepping the current frame
forward one frame then back again).

8 years agoAllow hiding separate hiding of overlays on stroke.
Antony Riakiotakis [Tue, 23 Apr 2013 00:32:51 +0000 (00:32 +0000)]
Allow hiding separate hiding of overlays on stroke.

8 years agoAdd stencil control for mask overlay. Key combinations are the same as
Antony Riakiotakis [Tue, 23 Apr 2013 00:06:22 +0000 (00:06 +0000)]
Add stencil control for mask overlay. Key combinations are the same as
regular stencil but use Alt as well, so Alt-Rclick is translation, Alt-
clamping to avoid scaling of stencil to zero.

8 years agofix for UI annoyance with popups (such as new image popup) opening their menus to...
Campbell Barton [Mon, 22 Apr 2013 22:32:42 +0000 (22:32 +0000)]
fix for UI annoyance with popups (such as new image popup) opening their menus to the right of the button.

8 years agoOverlay fixes:
Antony Riakiotakis [Mon, 22 Apr 2013 22:20:38 +0000 (22:20 +0000)]
Overlay fixes:

* Clobbering enum
* Cursor overlay not dependent on mapping (again!)
* Brush overlay not updating when size is tweaked

8 years agoFix #35056: crash running bpy.ops.transform.rotate() in background mode.
Brecht Van Lommel [Mon, 22 Apr 2013 21:27:44 +0000 (21:27 +0000)]
Fix #35056: crash running bpy.ops.transform.rotate() in background mode.