GPencil: Hide UV factor for Dots and Boxes

This parameter is not used with these modes.
This commit is contained in:
2019-04-15 16:07:56 +02:00
parent 25efa970d6
commit ab1d82e41e

View File

@@ -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: