Fix inconsistencies in texture paint UI T44929, T44927:

* lock alpha only works in projective painting
* fill threshold only works in 2D painting
This commit is contained in:
Antonis Ryakiotakis 2015-06-03 11:33:33 +02:00
parent b07be730b2
commit 43913fe212
1 changed files with 4 additions and 2 deletions

View File

@ -133,7 +133,7 @@ def brush_texpaint_common(panel, context, layout, brush, settings, projpaint=Fal
else:
row = col.row(align=True)
panel.prop_unified_color(row, context, brush, "color", text="")
if brush.image_tool == 'FILL':
if brush.image_tool == 'FILL' and not projpaint:
col.prop(brush, "fill_threshold")
else:
panel.prop_unified_color(row, context, brush, "secondary_color", text="")
@ -216,7 +216,9 @@ def brush_texpaint_common(panel, context, layout, brush, settings, projpaint=Fal
col = layout.column(align=True)
col.prop(brush, "use_accumulate")
col.prop(brush, "use_alpha")
if projpaint:
col.prop(brush, "use_alpha")
col.prop(brush, "use_gradient")
col.separator()