Made armatures evaluation safe(r) for threading
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 15 Jul 2013 18:46:19 +0000 (18:46 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 15 Jul 2013 18:46:19 +0000 (18:46 +0000)
commitc8d39fb0c224957fe3b48e9d76fa6c1bfe433965
treeb95a6c740c47532d4ab8453bd250ef7b20da1262
parent70de1690b867b292193c7d123410fea960f9205a
Made armatures evaluation safe(r) for threading

Apparently, some routines in armature deformation code
were using static arrays. This is probably just an
optimization thing, but it's very bad for threading.

Now made it so bbone matrices array is allocating in
callee function stack. This required exposing
MAX_BBONE_SUBDIV to an external API, This is not so
much crappy from code side, and it shall be the same
fast as before.
source/blender/blenkernel/BKE_armature.h
source/blender/blenkernel/intern/armature.c
source/blender/editors/armature/armature_skinning.c
source/blender/editors/space_view3d/drawarmature.c