Fixed read/writing of blendfiles with collision modifier (saving not supported itm...
[blender.git] / source / blender / blenloader / intern / readfile.c
index 83bae60df306f09f4b6fb3fd9b66523632172a94..99f0885b43541aa6effecf83fdcc953e7238c323 100644 (file)
@@ -2888,6 +2888,15 @@ static void direct_link_modifiers(FileData *fd, ListBase *lb)
                          printf ("direct_link_modifiers: read cloth baked_data.\n");
                   }
                } 
+               else if (md->type==eModifierType_Collision) {
+                       CollisionModifierData *collmd = (CollisionModifierData*) md;
+                       
+                       collmd->x = NULL;
+                       collmd->xnew = NULL;
+                       collmd->time = -1;
+                       collmd->numverts = 0;
+                       collmd->tree = NULL;
+               }
                else if (md->type==eModifierType_Hook) {
                        HookModifierData *hmd = (HookModifierData*) md;