Temporary fix for loading crash of .blends with cached frames. Also fixed some goal...
[blender.git] / source / blender / blenloader / intern / readfile.c
index 19f74096e540ddb8459e98bbfef83e5f4a23b061..3fbfef12f1f8f2d0558a7624e63743e41e28b6b8 100644 (file)
@@ -2878,11 +2878,13 @@ static void direct_link_modifiers(FileData *fd, ListBase *lb)
                   ClothModifierData    *clmd = (ClothModifierData*) md;
 
                   clmd->clothObject = NULL;
-                       /*
-                  if (clmd->sim_parms.flags & CSIMSETT_FLAG_BAKED) {
-                         clmd->baked_data = newdataadr (fd, clmd->baked_data);
+                  clmd->sim_parms.cache = NULL;
+               
+                  if (clmd->sim_parms.cache) {
+                          // TODO 
+                         // clmd->cache = newdataadr (fd, clmd->cache);
                          printf ("direct_link_modifiers: read cloth baked_data.\n");
-                  }*/
+                  }
                } 
                else if (md->type==eModifierType_Hook) {
                        HookModifierData *hmd = (HookModifierData*) md;