diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-01-02 00:49:04 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2009-01-02 00:49:04 +0300 |
commit | 99dd981329c3b91cbf927219205383df6020b1e8 (patch) | |
tree | 58340734855a302b878f0d545e3864ae97f81243 /source/blender/makesrna | |
parent | 14776f48730924f92ee512576a1e7625155d78c1 (diff) |
Added RNA for the Build modifier.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index 37318c60cf2..eb183348e6e 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -30,6 +30,7 @@ #include "rna_internal.h" #include "DNA_modifier_types.h" +#include "DNA_scene_types.h" #ifdef RNA_RUNTIME @@ -168,10 +169,26 @@ static void rna_def_modifier_curve(BlenderRNA *brna) static void rna_def_modifier_build(BlenderRNA *brna) { StructRNA *srna; + PropertyRNA *prop; srna= RNA_def_struct(brna, "BuildModifier", "Modifier"); RNA_def_struct_ui_text(srna, "Build Modifier", "Build Modifier."); RNA_def_struct_sdna(srna, "BuildModifierData"); + + prop= RNA_def_property(srna, "start", PROP_FLOAT, PROP_NONE); + RNA_def_property_range(prop, 1, MAXFRAMEF); + RNA_def_property_ui_text(prop, "Start", "Specify the start frame of the effect."); + + prop= RNA_def_property(srna, "length", PROP_FLOAT, PROP_NONE); + RNA_def_property_range(prop, 1, MAXFRAMEF); + RNA_def_property_ui_text(prop, "Length", "Specify the total time the build effect requires"); + + prop= RNA_def_property(srna, "randomize", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_ui_text(prop, "Randomize", "Randomize the faces or edges during build."); + + prop= RNA_def_property(srna, "seed", PROP_INT, PROP_NONE); + RNA_def_property_range(prop, 1, MAXFRAMEF); + RNA_def_property_ui_text(prop, "Seed", "Specify the seed for random if used."); } static void rna_def_modifier_mirror(BlenderRNA *brna) |