[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [18228] branches/blender2.5/blender/source /blender/makesrna/intern/rna_modifier.c: Added RNA for the Build modifier.

Nicholas Bishop nicholasbishop at gmail.com
Thu Jan 1 22:49:04 CET 2009


Revision: 18228
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18228
Author:   nicholasbishop
Date:     2009-01-01 22:49:04 +0100 (Thu, 01 Jan 2009)

Log Message:
-----------
Added RNA for the Build modifier.

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/makesrna/intern/rna_modifier.c

Modified: branches/blender2.5/blender/source/blender/makesrna/intern/rna_modifier.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_modifier.c	2009-01-01 21:16:16 UTC (rev 18227)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_modifier.c	2009-01-01 21:49:04 UTC (rev 18228)
@@ -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_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)





More information about the Bf-blender-cvs mailing list