[Bf-blender-cvs] [8f1224688ea] greasepencil-object: Cleanup: Rename keep_stroke_thickness to show_constant_thickness

Antonio Vazquez noreply at git.blender.org
Sat May 12 19:56:27 CEST 2018


Commit: 8f1224688eaafd86cddfb07bb1401499850cf90b
Author: Antonio Vazquez
Date:   Sat May 12 19:53:50 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB8f1224688eaafd86cddfb07bb1401499850cf90b

Cleanup: Rename keep_stroke_thickness to show_constant_thickness

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

M	release/scripts/startup/bl_ui/properties_data_gpencil.py
M	source/blender/makesrna/intern/rna_gpencil.c

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

diff --git a/release/scripts/startup/bl_ui/properties_data_gpencil.py b/release/scripts/startup/bl_ui/properties_data_gpencil.py
index 69e70e1e224..8c337dea945 100644
--- a/release/scripts/startup/bl_ui/properties_data_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_data_gpencil.py
@@ -287,9 +287,9 @@ class DATA_PT_gpencil_display(DataButtonsPanel, Panel):
         layout.separator()
 
         col = layout.column(align=True)
-        col.prop(gpd, "keep_stroke_thickness")
+        col.prop(gpd, "show_constant_thickness")
         sub = col.column()
-        sub.active = not gpd.keep_stroke_thickness
+        sub.active = not gpd.show_constant_thickness
         sub.prop(gpd, "pixfactor", text="Scale")
 
         layout.separator()
diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c
index 48b72d0b68e..625023b6c24 100644
--- a/source/blender/makesrna/intern/rna_gpencil.c
+++ b/source/blender/makesrna/intern/rna_gpencil.c
@@ -1325,7 +1325,7 @@ static void rna_def_gpencil_data(BlenderRNA *brna)
 	                         "and smaller red dot (end) points");
 	RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update");
 
-	prop = RNA_def_property(srna, "keep_stroke_thickness", PROP_BOOLEAN, PROP_NONE);
+	prop = RNA_def_property(srna, "show_constant_thickness", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_DATA_STROKE_KEEPTHICKNESS);
 	RNA_def_property_ui_text(prop, "Keep thickness", "Show stroke with same thickness when viewport zoom change");
 	RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update");



More information about the Bf-blender-cvs mailing list