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-14 23:52:01 +0300
committerAntonioya <blendergit@gmail.com>2018-09-14 23:54:19 +0300
commit6b024c7e1aebe8b0a76316ceef3139827cd3cb9f (patch)
treeb508a849330046d22e3dbb77cefcaa48fe88b876 /release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
parent54f1375e298696b81aea86862ae634eaa8c97464 (diff)
GP: Improve errase panel and toolbars
Some names were not clear enough and some parameters were missing.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_toolsystem_toolbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_toolsystem_toolbar.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index 4d7e1d47a59..382944de456 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -1239,8 +1239,13 @@ class _defs_gpencil_paint:
gp_settings = brush.gpencil_settings
if gp_settings.gpencil_brush_type == 'ERASE':
- row = layout.row()
+ row = layout.row(align=True)
row.prop(brush, "size", text="Radius")
+ row.prop(gp_settings, "use_pressure", text="", icon='STYLUS_PRESSURE')
+ if gp_settings.eraser_mode == 'SOFT':
+ row = layout.row(align=True)
+ row.prop(gp_settings, "pen_strength", slider=True)
+ row.prop(gp_settings, "use_strength_pressure", text="", icon='STYLUS_PRESSURE')
elif gp_settings.gpencil_brush_type == 'FILL':
row = layout.row()
row.prop(gp_settings, "gpencil_fill_leak", text="Leak Size")