[Bf-blender-cvs] [ab1d82e41e0] master: GPencil: Hide UV factor for Dots and Boxes

Antonioya noreply at git.blender.org
Mon Apr 15 16:08:18 CEST 2019


Commit: ab1d82e41e08de9ef7c3c4d4b68048cf6987feed
Author: Antonioya
Date:   Mon Apr 15 16:07:56 2019 +0200
Branches: master
https://developer.blender.org/rBab1d82e41e08de9ef7c3c4d4b68048cf6987feed

GPencil: Hide UV factor for Dots and Boxes

This parameter is not used with these modes.

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

M	release/scripts/startup/bl_ui/properties_material_gpencil.py

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

diff --git a/release/scripts/startup/bl_ui/properties_material_gpencil.py b/release/scripts/startup/bl_ui/properties_material_gpencil.py
index 8cb59ceee5c..e982bea9438 100644
--- a/release/scripts/startup/bl_ui/properties_material_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_material_gpencil.py
@@ -142,7 +142,9 @@ class MATERIAL_PT_gpencil_strokecolor(GPMaterialButtonsPanel, Panel):
                 row.enabled = not gpcolor.lock
                 col = row.column(align=True)
                 col.template_ID(gpcolor, "stroke_image", open="image.open")
-                col.prop(gpcolor, "pixel_size", text="UV Factor")
+                if gpcolor.mode == 'LINE':
+                    col.prop(gpcolor, "pixel_size", text="UV Factor")
+
                 col.prop(gpcolor, "use_stroke_pattern", text="Use As Pattern")
 
             if gpcolor.stroke_style == 'SOLID' or gpcolor.use_stroke_pattern is True:



More information about the Bf-blender-cvs mailing list