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:
authorCampbell Barton <ideasman42@gmail.com>2018-04-30 18:05:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-30 18:06:03 +0300
commitde1405949a2e120670347bbec3c40f1828b386bd (patch)
tree369df7d29f2537b94d06f7f8a18cdc0744d26f04
parent3b9554ce9d6fc232fd4a3e28b128d9b93a7073bd (diff)
UI: show topbar brush options w/ texture paint
-rw-r--r--release/scripts/startup/bl_ui/space_topbar.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 7a8b2563451..519a9f5a9b9 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -195,6 +195,17 @@ class _draw_left_context_mode:
UnifiedPaintPanel.prop_unified_strength(layout, context, brush, "strength", slider=True, text="Strength")
layout.prop(brush, "direction", text="", expand=True)
+ def PAINT_TEXTURE(context, layout):
+ brush = context.tool_settings.vertex_paint.brush
+ if brush is None:
+ return
+
+ from .properties_paint_common import UnifiedPaintPanel
+
+ layout.prop(brush, "color", text="")
+ UnifiedPaintPanel.prop_unified_size(layout, context, brush, "size", slider=True, text="Radius")
+ UnifiedPaintPanel.prop_unified_strength(layout, context, brush, "strength", slider=True, text="Strength")
+
def PAINT_VERTEX(context, layout):
brush = context.tool_settings.vertex_paint.brush
if brush is None: