diff options
author | Antonioya <blendergit@gmail.com> | 2018-09-22 00:11:30 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-09-22 00:11:30 +0300 |
commit | fbede83afd649128e5e416f4355acdde3782408f (patch) | |
tree | a154fdc4c9579c56e316394bec780d3b6e0e61e9 /release/scripts/startup/bl_ui/properties_grease_pencil_common.py | |
parent | 3a61771fdc31b1d659324f2c096709cf4fa94965 (diff) |
GP: Change appearance panel for sculpt brushes
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_grease_pencil_common.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py index e7521f8b3d0..29f61ff0aae 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -259,7 +259,7 @@ class GreasePencilStrokeSculptPanel: layout.prop(brush, "use_falloff") - if tool in {'THICKNESS', 'PINCH', 'TWIST'}: + if tool in {'THICKNESS', 'STRENGTH', 'PINCH', 'TWIST'}: col = layout.column() col.separator() col.row().prop(brush, "direction", expand=True) @@ -335,11 +335,13 @@ class GreasePencilAppearancePanel: elif ob.mode in {'GPENCIL_SCULPT', 'GPENCIL_WEIGHT'}: settings = context.tool_settings.gpencil_sculpt brush = settings.brush + tool = settings.tool col = layout.column(align=True) col.prop(brush, "use_cursor", text="Show Brush") col.row().prop(brush, "cursor_color_add", text="Add") - col.row().prop(brush, "cursor_color_sub", text="Subtract") + if tool in {'THICKNESS', 'STRENGTH', 'PINCH', 'TWIST'}: + col.row().prop(brush, "cursor_color_sub", text="Subtract") class GPENCIL_MT_pie_tool_palette(Menu): |