diff options
author | Antonioya <blendergit@gmail.com> | 2019-04-15 17:07:56 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-04-15 17:08:16 +0300 |
commit | ab1d82e41e08de9ef7c3c4d4b68048cf6987feed (patch) | |
tree | 65f9ed4ab82cc555352368b629d281ca2b8b66b1 /release/scripts | |
parent | 25efa970d67b038ef6ab4d6ff2fe6a745d84a162 (diff) |
GPencil: Hide UV factor for Dots and Boxes
This parameter is not used with these modes.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_material_gpencil.py | 4 |
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: |