Made modifiers_getVirtualModifierList safe for threading
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 1 Jul 2013 11:00:22 +0000 (11:00 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 1 Jul 2013 11:00:22 +0000 (11:00 +0000)
commitb763876cae8e27ac487e2eeb4a46b175a43600ef
tree316cc707dd84ff56a8fa307d3658971ecd35e6e8
parent16efede680c3eec3e7ff819fe32b76371b3aa522
Made modifiers_getVirtualModifierList safe for threading

Move static variables to context filling in by this fcuntion
and owned by a callee function. This ensures no conflicts
between threads happens because of static variables used in
this function.

Also moved modifier types and virtual modifiers data to a
function called from creator. This is needed to be sure all
the information is properly initialied to the time when
threads starts to use this data.
12 files changed:
source/blender/blenkernel/BKE_modifier.h
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/blenkernel/intern/displist.c
source/blender/blenkernel/intern/lattice.c
source/blender/blenkernel/intern/modifier.c
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/object_deform.c
source/blender/editors/interface/interface_templates.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/util/crazyspace.c
source/creator/creator.c
source/gameengine/GamePlayer/ghost/GPG_ghost.cpp