Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2019-04-15 17:07:56 +0300
committerAntonioya <blendergit@gmail.com>2019-04-15 17:08:16 +0300
commitab1d82e41e08de9ef7c3c4d4b68048cf6987feed (patch)
tree65f9ed4ab82cc555352368b629d281ca2b8b66b1 /release
parent25efa970d67b038ef6ab4d6ff2fe6a745d84a162 (diff)
GPencil: Hide UV factor for Dots and Boxes
This parameter is not used with these modes.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_material_gpencil.py4
1 files changed, 3 insertions, 1 deletions
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: