[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [18239] branches/blender2.5/blender/source /blender/makesrna/intern/rna_modifier.c: Added RNA for Hook modifier.
Nicholas Bishop
nicholasbishop at gmail.com
Fri Jan 2 03:37:54 CET 2009
Revision: 18239
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18239
Author: nicholasbishop
Date: 2009-01-02 03:37:54 +0100 (Fri, 02 Jan 2009)
Log Message:
-----------
Added RNA for Hook 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-02 02:25:29 UTC (rev 18238)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_modifier.c 2009-01-02 02:37:54 UTC (rev 18239)
@@ -454,11 +454,28 @@
static void rna_def_modifier_hook(BlenderRNA *brna)
{
StructRNA *srna;
- PropertyRNA *property;
+ PropertyRNA *prop;
srna= RNA_def_struct(brna, "HookModifier", "Modifier");
RNA_def_struct_ui_text(srna, "Hook Modifier", "Hook Modifier.");
RNA_def_struct_sdna(srna, "HookModifierData");
+
+ prop= RNA_def_property(srna, "falloff", PROP_FLOAT, PROP_NONE);
+ RNA_def_property_range(prop, 0, FLT_MAX);
+ RNA_def_property_ui_range(prop, 0, 100, 100, 2);
+ RNA_def_property_ui_text(prop, "Falloff", "If not zero, the distance from the hook where influence ends.");
+
+ prop= RNA_def_property(srna, "force", PROP_FLOAT, PROP_NONE);
+ RNA_def_property_range(prop, 0, 1);
+ RNA_def_property_ui_text(prop, "Force", "Relative force of the hook.");
+
+ prop= RNA_def_property(srna, "object", PROP_POINTER, PROP_NONE);
+ RNA_def_property_struct_type(prop, "ID");
+ RNA_def_property_ui_text(prop, "Object", "Parent Object for hook, also recalculates and clears offset");
+
+ prop= RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE);
+ RNA_def_property_string_sdna(prop, NULL, "name");
+ RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name.");
}
static void rna_def_modifier_softbody(BlenderRNA *brna)
More information about the Bf-blender-cvs
mailing list