Fix image paint showing project-paint settings
Also make projpaint a keyword-only argument to avoid copy-paste errors like this re-occurring in the future.
This commit is contained in:
@@ -503,7 +503,7 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel):
|
||||
# Texture Paint Mode #
|
||||
|
||||
elif context.image_paint_object and brush:
|
||||
brush_texpaint_common(self, context, layout, brush, settings, True)
|
||||
brush_texpaint_common(self, context, layout, brush, settings, projpaint=True)
|
||||
|
||||
# Weight Paint Mode #
|
||||
elif context.weight_paint_object and brush:
|
||||
@@ -551,15 +551,15 @@ class VIEW3D_PT_tools_brush_color(Panel, View3DPaintPanel):
|
||||
brush = settings.brush
|
||||
|
||||
if context.vertex_paint_object:
|
||||
brush_texpaint_common_color(self, context, layout, brush, settings, True)
|
||||
brush_texpaint_common_color(self, context, layout, brush, settings, projpaint=True)
|
||||
|
||||
else:
|
||||
layout.prop(brush, "color_type", expand=True)
|
||||
|
||||
if brush.color_type == 'COLOR':
|
||||
brush_texpaint_common_color(self, context, layout, brush, settings, True)
|
||||
brush_texpaint_common_color(self, context, layout, brush, settings, projpaint=True)
|
||||
elif brush.color_type == 'GRADIENT':
|
||||
brush_texpaint_common_gradient(self, context, layout, brush, settings, True)
|
||||
brush_texpaint_common_gradient(self, context, layout, brush, settings, projpaint=True)
|
||||
|
||||
|
||||
class VIEW3D_PT_tools_brush_swatches(Panel, View3DPaintPanel):
|
||||
@@ -613,7 +613,7 @@ class VIEW3D_PT_tools_brush_clone(Panel, View3DPaintPanel):
|
||||
|
||||
layout.active = settings.use_clone_layer
|
||||
|
||||
brush_texpaint_common_clone(self, context, layout, brush, settings, True)
|
||||
brush_texpaint_common_clone(self, context, layout, brush, settings, projpaint=True)
|
||||
|
||||
|
||||
class VIEW3D_PT_tools_brush_options(Panel, View3DPaintPanel):
|
||||
@@ -635,7 +635,7 @@ class VIEW3D_PT_tools_brush_options(Panel, View3DPaintPanel):
|
||||
col = layout.column()
|
||||
|
||||
if context.image_paint_object and brush:
|
||||
brush_texpaint_common_options(self, context, layout, brush, settings, True)
|
||||
brush_texpaint_common_options(self, context, layout, brush, settings, projpaint=True)
|
||||
|
||||
elif context.sculpt_object and brush:
|
||||
col.prop(brush, "use_automasking_topology")
|
||||
|
||||
Reference in New Issue
Block a user