Implement softbody function for modifier_depeends_on_time()
authorDaniel Genrich <daniel.genrich@gmx.net>
Wed, 10 Sep 2008 11:42:07 +0000 (11:42 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Wed, 10 Sep 2008 11:42:07 +0000 (11:42 +0000)
source/blender/blenkernel/intern/modifier.c

index 936081ab94fca7c04cf2f651ae09f74d86dcfa7f..f71ebc76e68ba8edd587e162f2d2d4a4e37d834b 100644 (file)
@@ -5293,6 +5293,11 @@ static void softbodyModifier_deformVerts(
        sbObjectStep(ob, (float)G.scene->r.cfra, vertexCos, numVerts);
 }
 
+static int softbodyModifier_dependsOnTime(ModifierData *md)
+{
+       return 1;
+}
+
 
 /* Cloth */
 
@@ -7580,6 +7585,7 @@ ModifierTypeInfo *modifierType_getInfo(ModifierType type)
                mti->flags = eModifierTypeFlag_AcceptsCVs
                                | eModifierTypeFlag_RequiresOriginalData;
                mti->deformVerts = softbodyModifier_deformVerts;
+               mti->dependsOnTime = softbodyModifier_dependsOnTime;
        
                mti = INIT_TYPE(Cloth);
                mti->type = eModifierTypeType_Nonconstructive;