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:
authorAntonioya <blendergit@gmail.com>2018-12-05 12:46:41 +0300
committerAntonioya <blendergit@gmail.com>2018-12-05 12:46:41 +0300
commit8e31e67bf5c0a33d6e1aba0c41e6af8d199aebcc (patch)
tree7b08a509069a0ee248e2bfc0259c67014e2b8688 /release/scripts/startup/bl_ui/space_topbar.py
parent5c8f1053b5f0f65168497fe5989cbc1b5cbba1ea (diff)
GP: Add missing pressure button to Topbar
Diffstat (limited to 'release/scripts/startup/bl_ui/space_topbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_topbar.py8
1 files changed, 6 insertions, 2 deletions
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="")