cloth: Fix [#36224] Cloth Simulation Doesn't Work on Rearranging Modifiers
authorSergej Reich <sergej.reich@googlemail.com>
Mon, 22 Jul 2013 15:35:29 +0000 (15:35 +0000)
committerSergej Reich <sergej.reich@googlemail.com>
Mon, 22 Jul 2013 15:35:29 +0000 (15:35 +0000)
Don't return imediately when simulation has changed.
It's not needed and prevented proper initialization on startframe when
simulation changed.

source/blender/blenkernel/intern/cloth.c

index a7311d5efc73bb0a77ed6eea4bd2c0b02150d11c..05ffd4a626571ea3abf1cac5ad0a0d479b05bf6c 100644 (file)
@@ -476,7 +476,6 @@ void clothModifier_do(ClothModifierData *clmd, Scene *scene, Object *ob, Derived
                BKE_ptcache_validate(cache, 0);
                cache->last_exact= 0;
                cache->flag &= ~PTCACHE_REDO_NEEDED;
-               return;
        }
        
        // unused in the moment, calculated separately in implicit.c