Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2020-07-10 20:43:01 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-07-13 18:51:12 +0300
commiteb3f74a0fe0abe1c591f12ac17f31455340e3866 (patch)
tree632bad698e0393818a92e1363c939b62fb4757cc /release
parent8dd2386a6834e13de69c7e4c4abc58f0d9cdeedb (diff)
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
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_paint_common.py4
1 files changed, 4 insertions, 0 deletions
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):