Made modifiers_getVirtualModifierList safe for threading
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 19 Aug 2013 09:05:34 +0000 (09:05 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 19 Aug 2013 09:05:34 +0000 (09:05 +0000)
commitbeffaa293ee2b111f256b989bd038460bde1eea0
tree9dbb83497da3cc5ed65d902666d094729c50f21e
parenta14febc70a0f8cb1ec8082600104a6629b0a20ee
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.

--
svn merge -r57899:57900 ^/branches/soc-2013-depsgraph_mt
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