fix for negated normal being used when using individual centers & normal orientation in vertex select mode.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60905 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for OSL bug reported on IRC by Pablo Vasquez: Clamp option of the math node in OSL produces bad results. Really stupid bug, OSL math node was assigning the clamped 1st input value instead of the
clamped result of the actual operation.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60906 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #37175, Viewer node issue for newly toggled render passes.
The RenderLayers node would use the "combined" image result for all passes which don't have a valid render result yet. This causes problems when the buffer element size is not actually 4 floats (RGBA) as
with the 3 float normal passes. Also the result is rather meaningless then, so just keep the image buffer at NULL for unavailable passes, which will return plain (0,0,0) color.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60907 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for occasional crashes due to numerical instability in Freestyle Perlin noise modifiers with a large 'octaves' value.
Problem report by Light BWK through personal communications, thanks a lot!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60911 954f8c5b-7b00-dc11-b283-0030488c597c
Fix freestyle compile after last commit

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60912 954f8c5b-7b00-dc11-b283-0030488c597c
OSX/CMake: fix ftemplate condition

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60913 954f8c5b-7b00-dc11-b283-0030488c597c
make the message for addons failing to parse a little more descriptive (suggested in report [#37196]).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60914 954f8c5b-7b00-dc11-b283-0030488c597c
drawobject: Fix sphere bounds drawing

Would draw ellipsoid instead, which is not so useful and wrong when 
used for rigid body collision shape visualization.

svn merge -r59887:59888 ^/branches/soc-2013-rigid_body_sim


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60917 954f8c5b-7b00-dc11-b283-0030488c597c
bullet: Update to version 2.82 (bullet revision 2705)
    
Remove patch that has been applied upstream.

Fixes several bugs.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60918 954f8c5b-7b00-dc11-b283-0030488c597c
rigidbody: Use bullet's own fixed constraint

Should be no functional changes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60919 954f8c5b-7b00-dc11-b283-0030488c597c
Fix building with scons

Can't actually test here so hope this is enough.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60920 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#30689] select similar for metaballs
from Cyrille Ruggero (kalado) with some edits.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60921 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#37188] Remove filename entry specified twice
from Lawrence D'Oliveiro (ldo)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60922 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: changes from last commit


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60923 954f8c5b-7b00-dc11-b283-0030488c597c
add check for cmake that source files are not included multiple times


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60924 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup and add mball select similar into the menu


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60925 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#37197] angle snapping for NORMAL button
from Philipp Oeser (lichtwerk) with minor edits.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60926 954f8c5b-7b00-dc11-b283-0030488c597c
replace snap values with enum and bool depending on use (it wasn't clear which was used when both were int's).

Ctrl+Shift now snaps normal button to 15deg increments.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60927 954f8c5b-7b00-dc11-b283-0030488c597c
Remove duplicate cmake enries in game engine and compositor

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60928 954f8c5b-7b00-dc11-b283-0030488c597c
rigidbody: Add "Apply Transformation" button

This is just the "Apply Visual Transform" operator.
It's very usefull for rigid body simulations but hard to find and users
usually don't know about it/don't know it's usefull to apply rigid body
transformations.
It seems bit out of place (especially the tooltip) so we might need to
do a bit more here.

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