[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55875] trunk/blender: Freestyle UI:

Thomas Dinges blender at dingto.org
Sun Apr 7 12:23:48 CEST 2013


Revision: 55875
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55875
Author:   dingto
Date:     2013-04-07 10:23:48 +0000 (Sun, 07 Apr 2013)
Log Message:
-----------
Freestyle UI:
* Remove "Unit" prefix from line thickness property. (discussed with Tamito in IRC)

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/properties_freestyle.py
    trunk/blender/source/blender/makesrna/intern/rna_scene.c

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_freestyle.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_freestyle.py	2013-04-07 10:21:28 UTC (rev 55874)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_freestyle.py	2013-04-07 10:23:48 UTC (rev 55875)
@@ -58,7 +58,7 @@
         
         row = layout.row()
         row.active = (rd.line_thickness_mode == 'ABSOLUTE')
-        row.prop(rd, "unit_line_thickness")
+        row.prop(rd, "line_thickness")
 
 
 # Render layer properties

Modified: trunk/blender/source/blender/makesrna/intern/rna_scene.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_scene.c	2013-04-07 10:21:28 UTC (rev 55874)
+++ trunk/blender/source/blender/makesrna/intern/rna_scene.c	2013-04-07 10:23:48 UTC (rev 55875)
@@ -2742,7 +2742,7 @@
 
 	prop = RNA_def_property(srna, "use_advanced_options", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "flags", FREESTYLE_ADVANCED_OPTIONS_FLAG);
-	RNA_def_property_ui_text(prop, "Advanced Edge Detection Options",
+	RNA_def_property_ui_text(prop, "Advanced Options",
 	                         "Enable advanced edge detection options (sphere radius and Kr derivative epsilon)");
 	RNA_def_property_update(prop, NC_SCENE, NULL);
 
@@ -4632,10 +4632,10 @@
 	RNA_def_property_enum_items(prop, freestyle_thickness_items);
 	RNA_def_property_ui_text(prop, "Line Thickness Mode", "Line thickness mode for Freestyle line drawing");
 
-	prop = RNA_def_property(srna, "unit_line_thickness", PROP_FLOAT, PROP_NONE);
+	prop = RNA_def_property(srna, "line_thickness", PROP_FLOAT, PROP_NONE);
 	RNA_def_property_float_sdna(prop, NULL, "unit_line_thickness");
 	RNA_def_property_range(prop, 0.f, 10000.f);
-	RNA_def_property_ui_text(prop, "Unit Line Thickness", "Unit line thickness in pixels");
+	RNA_def_property_ui_text(prop, "Line Thickness", "Line thickness in pixels");
 
 	/* Scene API */
 	RNA_api_scene_render(srna);




More information about the Bf-blender-cvs mailing list