Implement softbody function for modifier_depeends_on_time()

This commit is contained in:
Daniel Genrich
2008-09-10 11:42:07 +00:00
parent 1c44562d64
commit fdb057ff53

View 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;