From eb3f74a0fe0abe1c591f12ac17f31455340e3866 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Fri, 10 Jul 2020 19:43:01 +0200 Subject: Sculpt: Enable color palettes for sculpt vertex colors Enables the color palette subpanel for brushes that have color capabilities (only the paint brush for now) Reviewed By: sergey Differential Revision: https://developer.blender.org/D8268 --- release/scripts/startup/bl_ui/properties_paint_common.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py index 209231cacb0..58f188d0999 100644 --- a/release/scripts/startup/bl_ui/properties_paint_common.py +++ b/release/scripts/startup/bl_ui/properties_paint_common.py @@ -192,6 +192,10 @@ class ColorPalettePanel(BrushPanel): elif context.vertex_paint_object: capabilities = brush.vertex_paint_capabilities return capabilities.has_color + + elif context.sculpt_object: + capabilities = brush.sculpt_capabilities + return capabilities.has_color return False def draw(self, context): -- cgit v1.2.3