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.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56303 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35080: freestyle Fill Range by Selection operator giving error when invoked
without a linestyle.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56304 954f8c5b-7b00-dc11-b283-0030488c597c
Fix a few more cases where an operator should not show in the search menu.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56305 954f8c5b-7b00-dc11-b283-0030488c597c
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.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56306 954f8c5b-7b00-dc11-b283-0030488c597c
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.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56308 954f8c5b-7b00-dc11-b283-0030488c597c
fix for out of bounds memory access in solidify modifier (hidden by guardedalloc).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56309 954f8c5b-7b00-dc11-b283-0030488c597c
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.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56314 954f8c5b-7b00-dc11-b283-0030488c597c
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.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56315 954f8c5b-7b00-dc11-b283-0030488c597c
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!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56316 954f8c5b-7b00-dc11-b283-0030488c597c
Fix image painting not adding alpha when 2D painting in the image editor. This
code got lost after the optimizations in revision 55033.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56317 954f8c5b-7b00-dc11-b283-0030488c597c
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.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56318 954f8c5b-7b00-dc11-b283-0030488c597c
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.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56319 954f8c5b-7b00-dc11-b283-0030488c597c
game engine: Use 0.04 as default collision margin

0 is to unstable as a default.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56321 954f8c5b-7b00-dc11-b283-0030488c597c
add exec() to loopcut so it supports redo.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56322 954f8c5b-7b00-dc11-b283-0030488c597c
add support for macro redo if all operators in the macro have an exec()
this fixes [#35079] 


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56323 954f8c5b-7b00-dc11-b283-0030488c597c
edgeslide fixes/tweaks
* re-executing edgeslide was using initial mouse coords only.
* allow negative smooth
* allow more then 10 cuts in RNA limits.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56324 954f8c5b-7b00-dc11-b283-0030488c597c
Revert 56319, misunderstood API

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



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56325 954f8c5b-7b00-dc11-b283-0030488c597c
fix for recent commit that allowed incorrectly flushed face selection.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56326 954f8c5b-7b00-dc11-b283-0030488c597c
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.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56327 954f8c5b-7b00-dc11-b283-0030488c597c
fix for regression where tessface weren't recalculated when running loopcut outside of a macro.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56329 954f8c5b-7b00-dc11-b283-0030488c597c