[Bf-blender-cvs] [f1756575914] greasepencil-object: Rename pixel parameter

Antonio Vazquez noreply at git.blender.org
Thu Feb 22 10:04:08 CET 2018


Commit: f175657591459d392ae3d517228aeed8ac443ddf
Author: Antonio Vazquez
Date:   Thu Feb 22 10:03:37 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rBf175657591459d392ae3d517228aeed8ac443ddf

Rename pixel parameter

The name pixel can be confusing. It's better use UV factor because pixel concept is something intern.

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

M	release/scripts/startup/bl_ui/properties_material_gpencil.py
M	source/blender/makesrna/intern/rna_palette.c

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

diff --git a/release/scripts/startup/bl_ui/properties_material_gpencil.py b/release/scripts/startup/bl_ui/properties_material_gpencil.py
index 664fb95f7d2..2b5a683d964 100644
--- a/release/scripts/startup/bl_ui/properties_material_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_material_gpencil.py
@@ -172,7 +172,7 @@ class MATERIAL_PT_gpencil_palette_strokecolor(Panel):
         col = row.column(align=True)
         col.prop(pcolor, "pass_index")
         if pcolor.stroke_style == 'TEXTURE':
-            col.prop(pcolor, "pixel_size", text="Pixel Factor")
+            col.prop(pcolor, "pixel_size", text="UV Factor")
 
 
 class MATERIAL_PT_gpencil_palette_fillcolor(Panel):
diff --git a/source/blender/makesrna/intern/rna_palette.c b/source/blender/makesrna/intern/rna_palette.c
index f26bb2b39cf..f7c268d374f 100644
--- a/source/blender/makesrna/intern/rna_palette.c
+++ b/source/blender/makesrna/intern/rna_palette.c
@@ -382,11 +382,11 @@ static void rna_def_palettecolor(BlenderRNA *brna)
 	RNA_def_property_ui_text(prop, "Opacity", "Texture Opacity");
 	RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS | ND_DATA | NC_GPENCIL, "rna_Palette_dependency_update");
 
-	/* texture pixsize (used for UV along the stroke */
+	/* texture pixsize factor (used for UV along the stroke) */
 	prop = RNA_def_property(srna, "pixel_size", PROP_FLOAT, PROP_NONE);
 	RNA_def_property_float_sdna(prop, NULL, "t_pixsize");
 	RNA_def_property_range(prop, 1, 5000);
-	RNA_def_property_ui_text(prop, "Pixel", "Texture Pixel Size factor along the stroke");
+	RNA_def_property_ui_text(prop, "UV Factor", "Texture Pixel Size factor along the stroke");
 	RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS | ND_DATA | NC_GPENCIL, "rna_Palette_dependency_update");
 
 	/* Flags */



More information about the Bf-blender-cvs mailing list