Merge branch 'master' into blender2.8
[blender.git] / source / blender / blenloader / intern / versioning_270.c
index 12045dfdb83f194950473e244ec74043752ec5fd..be15070d0cc0548592171d016071dd19a8b4b480 100644 (file)
@@ -1598,6 +1598,17 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
                                }
                        } FOREACH_NODETREE_END
                }
+
+               if (!DNA_struct_elem_find(fd->filesdna, "SurfaceDeformModifierData", "float", "mat[4][4]")) {
+                       for (Object *ob = main->object.first; ob; ob = ob->id.next) {
+                               for (ModifierData *md = ob->modifiers.first; md; md = md->next) {
+                                       if (md->type == eModifierType_SurfaceDeform) {
+                                               SurfaceDeformModifierData *smd = (SurfaceDeformModifierData *)md;
+                                               unit_m4(smd->mat);
+                                       }
+                               }
+                       }
+               }
        }
 
        {