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/makesdna/DNA_modifier_types.h
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/makesdna/DNA_modifier_types.h')
-rw-r--r--source/blender/makesdna/DNA_modifier_types.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h
index 6756a18e382..06e75ca62de 100644
--- a/source/blender/makesdna/DNA_modifier_types.h
+++ b/source/blender/makesdna/DNA_modifier_types.h
@@ -167,9 +167,18 @@ typedef struct BuildModifierData {
ModifierData modifier;
float start, length;
- int randomize, seed;
+ short flag;
+
+ short randomize; /* (bool) whether order of vertices is randomized - legacy files (for readfile conversion) */
+ int seed; /* (int) random seed */
} BuildModifierData;
+/* Build Modifier -> flag */
+enum {
+ MOD_BUILD_FLAG_RANDOMIZE = (1 << 0), /* order of vertices is randomized */
+ MOD_BUILD_FLAG_REVERSE = (1 << 1), /* frame range is reversed, resulting in a deconstruction effect */
+};
+
/* Mask Modifier */
typedef struct MaskModifierData {
ModifierData modifier;