diff options
author | William Reynish <billrey@me.com> | 2019-03-19 21:42:17 +0300 |
---|---|---|
committer | William Reynish <billrey@me.com> | 2019-03-19 21:42:17 +0300 |
commit | f0770b8578f375fdfb733c6fdb8af9a0902a5019 (patch) | |
tree | e97d57444247f0412e44786e111079362f52f995 /release | |
parent | b525ecfcfbc163d05e1318dab7131d0320f8d83b (diff) |
Fix: Make sure color panels only appear in modes where they are supported
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index a183dd19109..98336519d0d 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -405,11 +405,11 @@ class VIEW3D_PT_tools_brush_color(Panel, View3DPaintPanel): brush = settings.brush if context.image_paint_object: capabilities = brush.image_paint_capabilities + return capabilities.has_color elif context.vertex_paint_object: capabilities = brush.vertex_paint_capabilities - - return capabilities.has_color + return capabilities.has_color def draw(self, context): layout = self.layout @@ -433,11 +433,11 @@ class VIEW3D_PT_tools_brush_swatches(Panel, View3DPaintPanel): brush = settings.brush if context.image_paint_object: capabilities = brush.image_paint_capabilities + return capabilities.has_color elif context.vertex_paint_object: capabilities = brush.vertex_paint_capabilities - - return capabilities.has_color + return capabilities.has_color def draw(self, context): layout = self.layout |