GP: Add missing pressure button to Topbar
authorAntonioya <blendergit@gmail.com>
Wed, 5 Dec 2018 09:46:41 +0000 (10:46 +0100)
committerAntonioya <blendergit@gmail.com>
Wed, 5 Dec 2018 09:46:41 +0000 (10:46 +0100)
release/scripts/startup/bl_ui/space_topbar.py

index af1f72fa72c1dc8947495ad6850d0ff4ce19eab0..8c8db7ed20208b078611771c398b7c0e5e279f24 100644 (file)
@@ -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="")