[Bf-blender-cvs] [f763b3b] master: RNA: Expose hook centre

Campbell Barton noreply at git.blender.org
Thu Jun 19 18:34:58 CEST 2014


Commit: f763b3ba36300124578bc6909777fa447fbdf6f0
Author: Campbell Barton
Date:   Fri Jun 20 02:20:23 2014 +1000
https://developer.blender.org/rBf763b3ba36300124578bc6909777fa447fbdf6f0

RNA: Expose hook centre

D529 by Gottfried Hofmann

===================================================================

M	source/blender/makesrna/intern/rna_modifier.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index 191d6d2..7ffc138 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -1279,6 +1279,11 @@ static void rna_def_modifier_hook(BlenderRNA *brna)
 	RNA_def_property_ui_text(prop, "Force",  "Relative force of the hook");
 	RNA_def_property_update(prop, 0, "rna_Modifier_update");
 
+	prop = RNA_def_property(srna, "center", PROP_FLOAT, PROP_NONE);
+	RNA_def_property_float_sdna(prop, NULL, "cent");
+	RNA_def_property_ui_text(prop, "Hook Center", "");
+	RNA_def_property_update(prop, 0, "rna_Modifier_update");
+
 	prop = RNA_def_property(srna, "object", PROP_POINTER, PROP_NONE);
 	RNA_def_property_ui_text(prop, "Object", "Parent Object for hook, also recalculates and clears offset");
 	RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK);




More information about the Bf-blender-cvs mailing list