Fix #33896: particle add brush with radius 1 would give duplicated and NaN hairs.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54054 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31338: python enum properties can now specify icons for items, in the following
order: (identifier, name, description, icon, unique number)

This also works without the icon still, for compatibility.

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


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54057 954f8c5b-7b00-dc11-b283-0030488c597c
replace calloc + memcpy with recalloc.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54059 954f8c5b-7b00-dc11-b283-0030488c597c
add bullet define & include for scons makesrna, also move meshcache utils into own file.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54060 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#33974] Bone roll flips 180 degrees when extruding bones vertically

For example, if you're making a chain of bones (e.g. for a spine) by extruding
the tip joint of an initial bone, the bone rolls would be: 0 (for the initial
bone), 180, -180, 180, -180, etc. This has the undesirable effect of causing
B-Bones to twist to match the roll values at the other end of the bone.

The fix here seems to improve the situation in this case: bone roll values don't
flip or change anymore (in fact, the bone axes stay perfectly aligned now, as
they should). It also doesn't seem to cause any problems in other common cases I
checked.




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54061 954f8c5b-7b00-dc11-b283-0030488c597c
rigidbody: Fix [#33971] Bullet Physics crash + patch

BKE_rigidbody_aftertrans_update() can be called before rigid body is
validated so check before updating physics_object.

Thanks to Antony Riakiotakis (psy-fi) for the initial patch.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54062 954f8c5b-7b00-dc11-b283-0030488c597c
add 'deform - integrate' option to mesh-cache,
This means the deformation on the input to the modifier can be re-applied ontop of the mesh cache.

In practice this is most useful for using corrective shape-keys with mesh-cache.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54063 954f8c5b-7b00-dc11-b283-0030488c597c
Remove dynamic-topology flag from mesh when entering sculpt mode

This will be enabled if the file was saved with dynamic topology on,
but we don't automatically re-enter dynamic-topology mode when loading
a file so remove the flag.

Fixes bug [#33956]
projects.blender.org/tracker/?func=detail&aid=33956&group_id=9&atid=498

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54064 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: minor edits to mesh-cache formatting.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54065 954f8c5b-7b00-dc11-b283-0030488c597c
Added some code which helps troubleshooting issues caused by
non-threadsafe usage of guarded allocator.

Also added small chunk of code to check consistency of begin/end
threaded malloc.

All this additional checks are commented and wouldn't affect on
builds, however found them helpful to troubleshoot issues so
decided to commit it to SVN.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54066 954f8c5b-7b00-dc11-b283-0030488c597c
Fix threading issues of viewport rendering when using movies/generated images

Issue was caused by the fact that guarded allocator is not thread-safe and
generated images/movies could allocate memory when loading pixels to Cycles.

Currently solved by switching memory allocator to using mutex lock (the same
as sued for jobs) when viewport rendering is used.

Nicer solution would be to make guarded allocator thread-safe by using atomic
operations and lock-free lists, but that's more serious change.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54067 954f8c5b-7b00-dc11-b283-0030488c597c
fix for G,G causing vertex slide in UV/Image window, also comment unused defines/enums.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54068 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33975: Crash when reloading texture

Two issues in texture_changed:
- Missing NULL check for material (slot could be empty)
- Materials could be linked to object, added special check for this

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54069 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#33969] fix for [#33968] Blenders Custom Project File Generator for QtCreator fails
from Philipp Oeser (lichtwerk) 


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54070 954f8c5b-7b00-dc11-b283-0030488c597c
fix for missing initialization of vert data in ccgDM_copyFinalVertArray


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54071 954f8c5b-7b00-dc11-b283-0030488c597c
Armature rigging:
Added more clear warning print for cases when a Proxy cannot be resolved.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54072 954f8c5b-7b00-dc11-b283-0030488c597c
use inline functions for subsurf MVert,MEdge mesh array functions, also some include cleanup for scons/cmake.


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