Sculpt:
[blender.git] / source / blender / blenkernel / intern / modifier.c
index d8c05c3..31849ac 100644 (file)
@@ -6020,7 +6020,7 @@ static void collisionModifier_initData(ModifierData *md)
        collmd->current_x = NULL;
        collmd->current_xnew = NULL;
        collmd->current_v = NULL;
-       collmd->time = -1;
+       collmd->time = -1000;
        collmd->numverts = 0;
        collmd->bvhtree = NULL;
 }
@@ -6051,7 +6051,7 @@ static void collisionModifier_freeData(ModifierData *md)
                collmd->current_x = NULL;
                collmd->current_xnew = NULL;
                collmd->current_v = NULL;
-               collmd->time = -1;
+               collmd->time = -1000;
                collmd->numverts = 0;
                collmd->bvhtree = NULL;
                collmd->mfaces = NULL;
@@ -6101,7 +6101,7 @@ static void collisionModifier_deformVerts(
                        if(collmd->x && (numverts != collmd->numverts))
                                collisionModifier_freeData((ModifierData *)collmd);
                        
-                       if(collmd->time == -1) // first time
+                       if(collmd->time == -1000) // first time
                        {
                                collmd->x = dm->dupVertArray(dm); // frame start position
                                
@@ -8929,6 +8929,12 @@ int modifier_couldBeCage(ModifierData *md)
                        modifier_supportsMapping(md));  
 }
 
+int modifier_sameTopology(ModifierData *md)
+{
+       ModifierTypeInfo *mti = modifierType_getInfo(md->type);
+       return ( mti->type == eModifierTypeType_OnlyDeform || mti->type == eModifierTypeType_Nonconstructive);
+}
+
 void modifier_setError(ModifierData *md, char *format, ...)
 {
        char buffer[2048];