[Bf-blender-cvs] [b1dae7bd6f9] blender2.8: Fix UI failing for vertex paint
Dalai Felinto
noreply at git.blender.org
Mon May 14 16:11:08 CEST 2018
Commit: b1dae7bd6f9c811c9c6dcbbafd49db2afe7c8bdb
Author: Dalai Felinto
Date: Mon May 14 16:11:05 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBb1dae7bd6f9c811c9c6dcbbafd49db2afe7c8bdb
Fix UI failing for vertex paint
===================================================================
M release/scripts/startup/bl_ui/space_topbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 27933e05fbf..719396ccdd1 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -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':
More information about the Bf-blender-cvs
mailing list