[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55930] trunk/blender/source/blender/ makesrna/intern/rna_linestyle.c: Fix for the subtype of range_min/ max parameters in RNA Freestyle settings.

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Wed Apr 10 02:20:06 CEST 2013


Revision: 55930
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55930
Author:   kjym3
Date:     2013-04-10 00:20:05 +0000 (Wed, 10 Apr 2013)
Log Message:
-----------
Fix for the subtype of range_min/max parameters in RNA Freestyle settings.
These parameters specify a distance in Blender units, so PROP_DISTANCE is more appropriate.
Suggested by Bastien Montagne through personal communications, thanks!

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

Modified: trunk/blender/source/blender/makesrna/intern/rna_linestyle.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_linestyle.c	2013-04-09 23:54:11 UTC (rev 55929)
+++ trunk/blender/source/blender/makesrna/intern/rna_linestyle.c	2013-04-10 00:20:05 UTC (rev 55930)
@@ -330,12 +330,12 @@
 	RNA_def_property_update(prop, NC_LINESTYLE, NULL);
 
 	if (range) {
-		prop = RNA_def_property(srna, "range_min", PROP_FLOAT, PROP_NONE);
+		prop = RNA_def_property(srna, "range_min", PROP_FLOAT, PROP_DISTANCE);
 		RNA_def_property_float_sdna(prop, NULL, "range_min");
 		RNA_def_property_ui_text(prop, "Range Min", "Lower bound of the input range the mapping is applied");
 		RNA_def_property_update(prop, NC_LINESTYLE, NULL);
 
-		prop = RNA_def_property(srna, "range_max", PROP_FLOAT, PROP_NONE);
+		prop = RNA_def_property(srna, "range_max", PROP_FLOAT, PROP_DISTANCE);
 		RNA_def_property_float_sdna(prop, NULL, "range_max");
 		RNA_def_property_ui_text(prop, "Range Max", "Upper bound of the input range the mapping is applied");
 		RNA_def_property_update(prop, NC_LINESTYLE, NULL);
@@ -370,12 +370,12 @@
 	RNA_def_property_update(prop, NC_LINESTYLE, NULL);
 
 	if (range) {
-		prop = RNA_def_property(srna, "range_min", PROP_FLOAT, PROP_NONE);
+		prop = RNA_def_property(srna, "range_min", PROP_FLOAT, PROP_DISTANCE);
 		RNA_def_property_float_sdna(prop, NULL, "range_min");
 		RNA_def_property_ui_text(prop, "Range Min", "Lower bound of the input range the mapping is applied");
 		RNA_def_property_update(prop, NC_LINESTYLE, NULL);
 
-		prop = RNA_def_property(srna, "range_max", PROP_FLOAT, PROP_NONE);
+		prop = RNA_def_property(srna, "range_max", PROP_FLOAT, PROP_DISTANCE);
 		RNA_def_property_float_sdna(prop, NULL, "range_max");
 		RNA_def_property_ui_text(prop, "Range Max", "Upper bound of the input range the mapping is applied");
 		RNA_def_property_update(prop, NC_LINESTYLE, NULL);




More information about the Bf-blender-cvs mailing list