Temporary fix for [#25735] Softbody don't work in linked groups, not generate cache
authorJanne Karhu <jhkarh@gmail.com>
Sat, 22 Jan 2011 14:13:36 +0000 (14:13 +0000)
committerJanne Karhu <jhkarh@gmail.com>
Sat, 22 Jan 2011 14:13:36 +0000 (14:13 +0000)
* The whole case of lib linking and pointcaches is not very well defined currently, but this fix sets the behavior of sb to the same as other physics currently.
* A proper fix will be easy to implement after a good physics baking ui is added.

source/blender/blenkernel/intern/softbody.c

index e38f1bb545c50c9bfa2805f4cf6322353850c433..3ba18fee615497c795160a5b1ad2a31a0b59ad77 100644 (file)
@@ -4151,7 +4151,7 @@ void sbObjectStep(Scene *scene, Object *ob, float cfra, float (*vertexCos)[3], i
        else if(cache_result==PTCACHE_READ_OLD) {
                ; /* do nothing */
        }
-       else if(ob->id.lib || (cache->flag & PTCACHE_BAKED)) {
+       else if(/*ob->id.lib || */(cache->flag & PTCACHE_BAKED)) { /* "library linking & pointcaches" has to be solved properly at some point */
                /* if baked and nothing in cache, do nothing */
                BKE_ptcache_invalidate(cache);
                return;