Disabled commit that was rendering Blender Internal for Cycles nodes.

Apparently Material nodes allow a mix of Cycles and BI Materials. Nifty!
I should read more docs, like this cool tutorial:
http://urchn.org/post/combining-blender-internal-and-cycles-in-one-render




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54086 954f8c5b-7b00-dc11-b283-0030488c597c
Do not redefine math functions for floats if compiler complies with C99 or POSIX.1-2001

This is useful for gcc which does not define sqrtf/powf/... functions with preprocessor and therefore always used sqrt/pow/...
Float functions are generally 20-50% faster than their equivalents for double type.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54087 954f8c5b-7b00-dc11-b283-0030488c597c
header cleanup, include BLI before BKE, also use bool for ntreeShaderExecTree


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54088 954f8c5b-7b00-dc11-b283-0030488c597c
Fix cycles crash that happened with mesh emission and diffuse/glossy ray
visibility disabled on some objects.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54089 954f8c5b-7b00-dc11-b283-0030488c597c
scons: Add missing WITH_BULLET define

Fixes [#33980] Ridid Body crashes when changing Collision shape with playback
as well as several other rigid body bugs wtih scons.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54092 954f8c5b-7b00-dc11-b283-0030488c597c
rigidbody: Improve add/remove operators

Now all add/remove operators for rigid body objects and constraints
automatically add objects to the appropriate groups and create groups if they
don't exist yet.

This makes handling rigid bodies easier but doesn't take away functionality.
If users want to handle groups manually they just need to create them before
adding any objects.

The previous behaviour was confusing and was even considered to be a bug since
clicking on rigid body in the physics tab seemed to do nothing.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54094 954f8c5b-7b00-dc11-b283-0030488c597c
committed patch [#33972] dilate/erode optimization

this patch optimizes the dilate/erode step method (hopefully without any functional change),
making its speed not depend on the distance anymore.

Couldn't detect funtional changes so committing. Haven't tested for speed gain.

 * credits to erwin94 David M



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54096 954f8c5b-7b00-dc11-b283-0030488c597c
Increasing dilate erode number of steps.



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

Transparent region drawing and blend broke by commit 53919 5 days ago.
This commit reverts the change.

The claim in previous commit "edited code for readability" is quite
disputable :) The error is hard to notice even.

I also like to emphasize that people should check with owners for code
before committing changes! Cleaning code is first a job for maintainers.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54098 954f8c5b-7b00-dc11-b283-0030488c597c
Fix warnings about undefined _POSIX_C_SOURCE with gcc 4.2 on Mac.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54099 954f8c5b-7b00-dc11-b283-0030488c597c
Small tweak: Allow DPI for UI to go up 144, exactly double size of 72.
That makes all default icons draw in full unfiltered 32x32 pixel glory!



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