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 11:31:47 +0300
committerAntonioya <blendergit@gmail.com>2018-09-14 11:31:47 +0300
commit1d76fbf3df69db6939145b5a1cac7a5d6a482375 (patch)
treee4831100bd100556205c81b78984dba5cd8fa4ed /release/scripts/startup/bl_ui/space_view3d_toolbar.py
parent18141863b2123fec3aab411755db3ed2be4ce04d (diff)
GP: Add thickness and stregth factor to UI
Now it's possible change the factors for soft eraser.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 0f774b1b21e..1ef13a89548 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1427,6 +1427,11 @@ class VIEW3D_PT_tools_grease_pencil_brush(View3DPanel, Panel):
row = layout.row(align=True)
row.prop(gp_settings, "eraser_mode", expand=True)
+ if gp_settings.eraser_mode == 'SOFT':
+ row = layout.row(align=True)
+ row.prop(gp_settings, "eraser_strength_factor")
+ row = layout.row(align=True)
+ row.prop(gp_settings, "eraser_thickness_factor")
elif gp_settings.gpencil_brush_type == 'FILL':
col = layout.column(align=True)
col.prop(gp_settings, "gpencil_fill_leak", text="Leak Size")