OSX: Get the current locale in objC-style

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54978 954f8c5b-7b00-dc11-b283-0030488c597c
partial revert of collada triangulation code due to problems on linux

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54982 954f8c5b-7b00-dc11-b283-0030488c597c
enable triangulation with collada, disable BLI_STATIC_ASSERT for C++.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54983 954f8c5b-7b00-dc11-b283-0030488c597c
move toggle drag into a UI handler (was modal operator)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54985 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: de-duplicate ~75 lines copied twice - tsk tsk.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54986 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: ~400 duplicate lines for AO form factor math.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54987 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: de-duplicate cast modifier logic, had 'optimization' which was only saving a NULL check per loop, causing most of the logic to be copied, ~130 lines.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54988 954f8c5b-7b00-dc11-b283-0030488c597c
rigidbody: Fix inconsistency with world rebuilding

The rigid body world could be rebuilt on start frame and one frame after
start frame. The latter was necessary sice animation playback usually
doesn't start at start frame.
This lead to different simulations depending on which frame the
simulaton was rebuilt when animation was involved.

Now we only rebuild the world on start frame.
This is actually tricky to do since, as mentioned above, animation
playback starts on second frame. To work around this we rebuild the
world before the actual update.
The alternative would be to rebuld the world on every simulation change
(like the other simulations do it) but this is an expensive operation
and would be too slow.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54990 954f8c5b-7b00-dc11-b283-0030488c597c
rigidbody: Revert to running simulation on frame update

Instead of flagging the rigid body world for frame update just call
BKE_rigidbody_do_simulation() recursively for all scenes.

This avoids having to constantly check if the simulation needs to be
updated.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54991 954f8c5b-7b00-dc11-b283-0030488c597c
Collada: exported normals now based on MPoly instead of MFace

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54992 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34508: particle emitter show/hide option did not work correct after
recent bugfix.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54993 954f8c5b-7b00-dc11-b283-0030488c597c
Cleanup, move uv sculpt specific code to sculpt_uv.c. Also rename
brush_drawcursor to a more indicative of its users name until paint
cursor unification is done.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54995 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for [#34509] minor theme panel color issue
* panelcolors.back and panelcolors.header were missing in resources.c for the 3D View. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54996 954f8c5b-7b00-dc11-b283-0030488c597c
OSX/locale: fix compile on older xcode by not using toll-free-bridging, which needs ARC

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