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-09-13 17:52:27 +0300
committerAntonioya <blendergit@gmail.com>2018-09-13 17:52:27 +0300
commita273e432ccbb510c5dea26f16df61cfc9c747008 (patch)
treea799a75fbd6fdabae01f0f5ce2647d570699492f /release/scripts/startup/bl_ui/space_view3d_toolbar.py
parent03e8de9dae8eebd3c54a076456d58dec813f346e (diff)
GP: Add pressure button for eraser brushes
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 9bb2193ea1a..e1f9abfdae7 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1419,9 +1419,11 @@ class VIEW3D_PT_tools_grease_pencil_brush(View3DPanel, Panel):
# Brush details
if gp_settings.gpencil_brush_type == 'ERASE':
- col = layout.column(align=True)
- col.prop(brush, "size", text="Radius")
+ row = layout.row(align=True)
+ row.prop(brush, "size", text="Radius")
+ row.prop(gp_settings, "use_pressure", text="", icon='STYLUS_PRESSURE')
+ col = layout.column(align=True)
col.separator()
row = col.row()
row.prop(gp_settings, "eraser_mode", expand=True)