[Bf-blender-cvs] [93a8556bf4b] blender2.8: UI: add painting blend mode to top-bar
William Reynish
noreply at git.blender.org
Wed Jan 2 00:46:35 CET 2019
Commit: 93a8556bf4b1556be793af1fd954cebbf9d7f9a7
Author: William Reynish
Date: Wed Jan 2 10:46:10 2019 +1100
Branches: blender2.8
https://developer.blender.org/rB93a8556bf4b1556be793af1fd954cebbf9d7f9a7
UI: add painting blend mode to top-bar
===================================================================
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 6f80b4394b6..50dc094bccf 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -259,6 +259,7 @@ class _draw_left_context_mode:
UnifiedPaintPanel.prop_unified_color(layout, context, 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")
+ layout.prop(brush, "blend", text="")
@staticmethod
def PAINT_VERTEX(context, layout, tool):
@@ -277,6 +278,7 @@ class _draw_left_context_mode:
UnifiedPaintPanel.prop_unified_color(layout, context, 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")
+ layout.prop(brush, "blend", text="")
@staticmethod
def PAINT_WEIGHT(context, layout, tool):
@@ -294,6 +296,7 @@ class _draw_left_context_mode:
UnifiedPaintPanel.prop_unified_weight(layout, context, brush, "weight", slider=True, text="Weight")
UnifiedPaintPanel.prop_unified_size(layout, context, brush, "size", slider=True, text="Radius")
UnifiedPaintPanel.prop_unified_strength(layout, context, brush, "strength", slider=True, text="Strength")
+ layout.prop(brush, "blend", text="")
@staticmethod
def PAINT_GPENCIL(context, layout, tool):
@@ -494,6 +497,7 @@ class _draw_left_context_mode:
UnifiedPaintPanel.prop_unified_color(layout, context, 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")
+ layout.prop(brush, "blend", text="")
class TOPBAR_PT_gpencil_layers(Panel):
More information about the Bf-blender-cvs
mailing list