[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32978] trunk/blender/source/blender/ makesrna/intern/rna_modifier.c: fix [#24631] array modifier, relative offset, units

Campbell Barton ideasman42 at gmail.com
Wed Nov 10 09:10:42 CET 2010


Revision: 32978
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32978
Author:   campbellbarton
Date:     2010-11-10 09:10:42 +0100 (Wed, 10 Nov 2010)

Log Message:
-----------
fix [#24631] array modifier, relative offset, units

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_modifier.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_modifier.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_modifier.c	2010-11-10 07:46:38 UTC (rev 32977)
+++ trunk/blender/source/blender/makesrna/intern/rna_modifier.c	2010-11-10 08:10:42 UTC (rev 32978)
@@ -1166,12 +1166,12 @@
 	RNA_def_property_ui_text(prop, "Constant Offset Displacement", "");
 	RNA_def_property_update(prop, 0, "rna_Modifier_update");
 
-	prop= RNA_def_property(srna, "use_relative_offset", PROP_BOOLEAN, PROP_TRANSLATION);
+	prop= RNA_def_property(srna, "use_relative_offset", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "offset_type", MOD_ARR_OFF_RELATIVE);
 	RNA_def_property_ui_text(prop, "Relative Offset", "Add an offset relative to the object's bounding box");
 	RNA_def_property_update(prop, 0, "rna_Modifier_update");
 
-	prop= RNA_def_property(srna, "relative_offset_displace", PROP_FLOAT, PROP_TRANSLATION);
+	prop= RNA_def_property(srna, "relative_offset_displace", PROP_FLOAT, PROP_NONE); /* PROP_TRANSLATION causes units to be used which we dont want */
 	RNA_def_property_float_sdna(prop, NULL, "scale");
 	RNA_def_property_ui_text(prop, "Relative Offset Displacement", "");
 	RNA_def_property_update(prop, 0, "rna_Modifier_update");





More information about the Bf-blender-cvs mailing list