[Bf-blender-cvs] [de1405949a2] blender2.8: UI: show topbar brush options w/ texture paint
Campbell Barton
noreply at git.blender.org
Mon Apr 30 17:07:10 CEST 2018
Commit: de1405949a2e120670347bbec3c40f1828b386bd
Author: Campbell Barton
Date: Mon Apr 30 17:05:48 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBde1405949a2e120670347bbec3c40f1828b386bd
UI: show topbar brush options w/ texture 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 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:
More information about the Bf-blender-cvs
mailing list