Build Modifier - Add "Reversed" Option
[blender.git] / source / blender / blenloader / intern / versioning_260.c
index 768e0ba5e685747a693d61d322a300434ad73108..218313ebb4466b027237e14388c87ed6ec111660 100644 (file)
@@ -2655,6 +2655,22 @@ void blo_do_versions_260(FileData *fd, Library *UNUSED(lib), Main *main)
                        }
                }
        }
+       
+       if (!MAIN_VERSION_ATLEAST(main, 269, 9)) {
+               Object *ob;
+               
+               for (ob = main->object.first; ob; ob = ob->id.next) {
+                       ModifierData *md;
+                       for (md = ob->modifiers.first; md; md = md->next) {
+                               if (md->type == eModifierType_Build) {
+                                       BuildModifierData *bmd = (BuildModifierData *)md;
+                                       if (bmd->randomize) {
+                                               bmd->flag |= MOD_BUILD_FLAG_RANDOMIZE;
+                                       }
+                               }
+                       }
+               }
+       }
 
        if (!DNA_struct_elem_find(fd->filesdna, "BevelModifierData", "float", "profile")) {
                Object *ob;