Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2014-01-16 15:13:36 +0400
committerJoshua Leung <aligorith@gmail.com>2014-01-17 05:53:04 +0400
commit5c74ac2c2a41e70b487321fc6e1afb2625704b1c (patch)
treec69246c3c0f197fd9bef025d63b7c5f3bcb7bf95 /source/blender/blenloader
parent607df8090b4eeb2d7762734a2adb83e67e83124f (diff)
Build Modifier - Add "Reversed" Option
This commit introduces the ability to make the Build Modifier operate in reverse, essentially allowing it to be used as a "deconstruction" effect. (See D219 for more details about use cases for this)
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_260.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_260.c b/source/blender/blenloader/intern/versioning_260.c
index 768e0ba5e68..218313ebb44 100644
--- a/source/blender/blenloader/intern/versioning_260.c
+++ b/source/blender/blenloader/intern/versioning_260.c
@@ -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;