Fix UI failing for vertex paint

This commit is contained in:
Dalai Felinto 2018-05-14 16:11:05 +02:00
parent fc7316fb54
commit b1dae7bd6f
Notes: blender-bot 2023-02-14 07:53:51 +01:00
Referenced by issue #55061, Workbench shadows don't update during sculpting
1 changed files with 3 additions and 0 deletions

View File

@ -238,7 +238,10 @@ class TOPBAR_HT_lower_bar(Header):
if object_mode not in {'SCULPT', 'VERTEX_PAINT', 'WEIGHT_PAINT', 'TEXTURE_PAINT'}:
show_snap = True
else:
from .properties_paint_common import UnifiedPaintPanel
paint_settings = UnifiedPaintPanel.paint_settings(context)
if paint_settings:
brush = paint_settings.brush
if brush and brush.stroke_method == 'CURVE':