[Bf-blender-cvs] [8e31e67bf5c] blender2.8: GP: Add missing pressure button to Topbar

Antonioya noreply at git.blender.org
Wed Dec 5 10:46:47 CET 2018


Commit: 8e31e67bf5c0a33d6e1aba0c41e6af8d199aebcc
Author: Antonioya
Date:   Wed Dec 5 10:46:41 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB8e31e67bf5c0a33d6e1aba0c41e6af8d199aebcc

GP: Add missing pressure button to Topbar

===================================================================

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 af1f72fa72c..8c8db7ed202 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -384,8 +384,12 @@ class _draw_left_context_mode:
             tool = settings.sculpt_tool
             brush = settings.brush
 
-            layout.prop(brush, "size", slider=True)
-
+            row = layout.row(align=True)
+            row.prop(brush, "size", slider=True)
+            sub = row.row(align=True)
+            sub.enabled = tool not in {'GRAB', 'CLONE'}
+            sub.prop(brush, "use_pressure_radius", text="")
+            
             row = layout.row(align=True)
             row.prop(brush, "strength", slider=True)
             row.prop(brush, "use_pressure_strength", text="")



More information about the Bf-blender-cvs mailing list