blender.git
7 years agoFix for a typo in scons configuration
Sergey Sharybin [Mon, 29 Apr 2013 07:24:45 +0000 (07:24 +0000)]
Fix for a typo in scons configuration

7 years agominor adjustment to vertex color baking, tag the meshes directly, no need to do via...
Campbell Barton [Mon, 29 Apr 2013 00:49:44 +0000 (00:49 +0000)]
minor adjustment to vertex color baking, tag the meshes directly, no need to do via the objects.

7 years agocmake - warn when an option is turned off because of boost being disabled.
Campbell Barton [Mon, 29 Apr 2013 00:44:33 +0000 (00:44 +0000)]
cmake - warn when an option is turned off because of boost being disabled.

7 years agotweak for epsilon of intersection check, was too small for some cases.
Campbell Barton [Sun, 28 Apr 2013 22:35:08 +0000 (22:35 +0000)]
tweak for epsilon of intersection check, was too small for some cases.

7 years agobullet: Fix avoiding collision response between static/kinematic objects
Sergej Reich [Sun, 28 Apr 2013 21:40:54 +0000 (21:40 +0000)]
bullet: Fix avoiding collision response between static/kinematic objects

Sent patch upstream.

Fixes [#35115] Character physics type fails collision with static type with an action on 2.67 rc

7 years agofix for reset brushes curve setting a flipped curve
Campbell Barton [Sun, 28 Apr 2013 20:51:44 +0000 (20:51 +0000)]
fix for reset brushes curve setting a flipped curve

7 years agofix for inserting a color-curve point.
Campbell Barton [Sun, 28 Apr 2013 20:25:25 +0000 (20:25 +0000)]
fix for inserting a color-curve point.
- was reading outside memory bounds checking the 'x' point.
- inserting a point to the right of the last point would add a point to the very left instead.

7 years agofix for bug with edge-slide doing UV correction when the faces connected to one of...
Campbell Barton [Sun, 28 Apr 2013 17:44:28 +0000 (17:44 +0000)]
fix for bug with edge-slide doing UV correction when the faces connected to one of the sliding edges dont have contiguous UV's (or vcols etc).
resolve by using faces adjacent to the ones directly connected to the edge that sliding.

This isnt a prefect solution but it resolves the common case where an edge slides along a UV seam.

7 years agosimplify projectEdgeSlideData(), was doing unneeded looping, remove and remove need...
Campbell Barton [Sun, 28 Apr 2013 17:34:23 +0000 (17:34 +0000)]
simplify projectEdgeSlideData(), was doing unneeded looping, remove and remove need for visithash also.

7 years agoFluid UI:
Thomas Dinges [Sun, 28 Apr 2013 16:52:51 +0000 (16:52 +0000)]
Fluid UI:
* Display Simulation threads only, when built with OpenMP.

7 years agowarning cleanup: assignment to unused vars, r56359 changes how brush falloff is used...
Campbell Barton [Sun, 28 Apr 2013 15:37:18 +0000 (15:37 +0000)]
warning cleanup: assignment to unused vars, r56359 changes how brush falloff is used slightly but this isn't so important so just remove falloff adjustment.

7 years agoFix for "new" Cycles handling of textures, UI code assumed all texture users use...
Bastien Montagne [Sun, 28 Apr 2013 15:20:52 +0000 (15:20 +0000)]
Fix for "new" Cycles handling of textures, UI code assumed all texture users use "texture" as prop name, but at least WeightVG modifiers do not.

Fixed by adding a "texture_user_property" member to spacebuts' context, and using it to get the prop identifier in ui script.

Thanks to Brecht for its advice!

7 years agoFix [#35127] Layout -> Frame doen't exist anymore
Thomas Dinges [Sun, 28 Apr 2013 13:02:46 +0000 (13:02 +0000)]
Fix [#35127] Layout -> Frame doen't exist anymore

7 years agoFix #35121: cycles 3D viewport render pause button not working during render.
Brecht Van Lommel [Sun, 28 Apr 2013 12:31:24 +0000 (12:31 +0000)]
Fix #35121: cycles 3D viewport render pause button not working during render.

7 years agoFix #34233: bad alpha blending for 3D texture painting. Same changes as the
Brecht Van Lommel [Sun, 28 Apr 2013 11:55:41 +0000 (11:55 +0000)]
Fix #34233: bad alpha blending for 3D texture painting. Same changes as the
previous fix for 2D image painting were done, and also:

* For brushes that do masking (keeping the max contribution to a pixel limited),
  the alpha from textures is now part of the mask. In many cases the logic
  worked out the same and where it didn't it used to cause artifacts.

* Color interpolation for smear and soften tools now happens in premultipied
  space, to avoid bleeding of RGB colors from zero alpha areas.

* Fix a few cases where byte <=> float conversion was not doing the proper
  straight <=> premul conversion.

* Replace some float division by constants with multiplications, is faster.

Note: float texture painting seems to have some issues updating the OpenGL
texture, but issue was already there before this commit.

7 years agoKeeping my commit count high!
Ton Roosendaal [Sun, 28 Apr 2013 11:05:49 +0000 (11:05 +0000)]
Keeping my commit count high!

Previous GLSL code had error, the if() statement had to be negated.

7 years agoGLSL display of float buffers with alpha:
Ton Roosendaal [Sun, 28 Apr 2013 11:03:01 +0000 (11:03 +0000)]
GLSL display of float buffers with alpha:
Previous version worked, now a version with simplifying this GLSL code.

7 years agoThis glsl shader works for OCIO with alpha. OSX iMac with ATI.
Ton Roosendaal [Sun, 28 Apr 2013 10:46:18 +0000 (10:46 +0000)]
This glsl shader works for OCIO with alpha. OSX iMac with ATI.

There's no logical reason I can find... but I commit it because many others have
the same error, so we can check.

7 years agoBug fix #35117
Ton Roosendaal [Sun, 28 Apr 2013 09:47:11 +0000 (09:47 +0000)]
Bug fix #35117

Sequencer: Properties region didn't have the general Sequencer keymap, so it didn't
respond to "Nkey" to hide the region.

7 years agoBug fix #35124
Ton Roosendaal [Sun, 28 Apr 2013 09:16:10 +0000 (09:16 +0000)]
Bug fix #35124

Outliner was drawing "Animation" category even when no actions/strips/drivers existed.
Would happen after adding Action and unlinking it.

7 years agoBGE: Fix for [#34383] Blender crash Steering actuator 2.66 -> 2.59 -> 2.66. Reported...
Mitchell Stokes [Sun, 28 Apr 2013 06:13:24 +0000 (06:13 +0000)]
BGE: Fix for [#34383] Blender crash Steering actuator 2.66 -> 2.59 -> 2.66. Reported and fixed by HG1.

7 years agofix for crash while drawing editmesh with weights in rare cases when the length was...
Campbell Barton [Sat, 27 Apr 2013 23:42:42 +0000 (23:42 +0000)]
fix for crash while drawing editmesh with weights in rare cases when the length was set but array NULL.

7 years agofix for out of bounds memory read when running wire-frame tool on empty mesh.
Campbell Barton [Sat, 27 Apr 2013 22:10:06 +0000 (22:10 +0000)]
fix for out of bounds memory read when running wire-frame tool on empty mesh.

7 years agominor changes, BLI_uvproject_from_view was doing matrix multiply for no reason, quiet...
Campbell Barton [Sat, 27 Apr 2013 21:56:28 +0000 (21:56 +0000)]
minor changes, BLI_uvproject_from_view was doing matrix multiply for no reason, quiet float/double warning.

7 years agoBLI_strlen_utf8 was doing size_t / int conversion unnecessarily.
Campbell Barton [Sat, 27 Apr 2013 19:40:23 +0000 (19:40 +0000)]
BLI_strlen_utf8 was doing size_t / int conversion unnecessarily.

7 years agoremove unused function: projectf
Campbell Barton [Sat, 27 Apr 2013 19:27:08 +0000 (19:27 +0000)]
remove unused function: projectf

7 years agoadd vertex color smooth operator.
Campbell Barton [Sat, 27 Apr 2013 19:00:26 +0000 (19:00 +0000)]
add vertex color smooth operator.

Since the bug was fixed that made blur brush _not_ blur all verts, there is no way to blur vertex colors after baking.
While this was hidden it was useful especially for baking vertex colors.

7 years agoSolve possible uninitialized variables usage in sequencer draw function
Sergey Sharybin [Sat, 27 Apr 2013 18:21:16 +0000 (18:21 +0000)]
Solve possible uninitialized variables usage in sequencer draw function

7 years agoFix for fix in alpha de-premul
Sergey Sharybin [Sat, 27 Apr 2013 17:50:11 +0000 (17:50 +0000)]
Fix for fix in alpha de-premul

We do not need to premul shader result, opengl
is already configured for straight alpha.

7 years agoquiet warning, color blend c file was missing own include, also minor style tweaks.
Campbell Barton [Sat, 27 Apr 2013 17:41:10 +0000 (17:41 +0000)]
quiet warning, color blend c file was missing own include, also minor style tweaks.

7 years agoPremultiplication in OCIO shader went wrong,
Sergey Sharybin [Sat, 27 Apr 2013 17:08:37 +0000 (17:08 +0000)]
Premultiplication in OCIO shader went wrong,
it used to apply alpha on source color after
conversion, not on result.

7 years agoApparently better not to use values like 1.0f in GLSL code
Sergey Sharybin [Sat, 27 Apr 2013 16:43:15 +0000 (16:43 +0000)]
Apparently better not to use values like 1.0f in GLSL code

Fix from debug session of self and Ton, was affecting OSX
builds, making GLSL display transform not working on this
platform.

7 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

7 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
textures).

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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]

7 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.

7 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.

7 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.

7 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.

7 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.

7 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!

7 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.

7 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.

7 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).

7 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.

7 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.

7 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.

7 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.

7 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.

7 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

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

Remove outdated comment.

7 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 ).

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

7 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

7 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.

7 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.

7 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.

7 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.

7 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.

7 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

7 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,

7 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.

7 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.

7 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
prefix).

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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
space.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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).

7 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.

7 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.

7 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 ...

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.