diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-12-17 19:27:49 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-12-17 19:27:49 +0300 |
commit | 0b60fb5ec245db5b14bd51bce216efff462fad75 (patch) | |
tree | 2acec284ff2d453573def56b42eab2d2cecea6cd /release | |
parent | 7267d1fe30ed82462d57407f45948fb321b52ac5 (diff) |
GPencil: Cleanup - Remove duplicated code
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 12 |
1 files changed, 2 insertions, 10 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 12ed14464f8..45cb10bb3bd 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -232,17 +232,9 @@ class GreasePencilDisplayPanel: col = layout.column(align=True) col.active = brush.use_cursor - if tool in {'THICKNESS', 'STRENGTH'}: - col.prop(brush, "cursor_color_add", text="Cursor Color") - col.prop(brush, "cursor_color_sub", text="Inverse Cursor Color") - elif tool == 'PINCH': - col.prop(brush, "cursor_color_add", text="Cursor Color") + col.prop(brush, "cursor_color_add", text="Cursor Color") + if tool in {'THICKNESS', 'STRENGTH', 'PINCH', 'TWIST'}: col.prop(brush, "cursor_color_sub", text="Inverse Cursor Color") - elif tool == 'TWIST': - col.prop(brush, "cursor_color_add", text="Cursor Color") - col.prop(brush, "cursor_color_sub", text="Inverse Cursor Color") - else: - col.prop(brush, "cursor_color_add", text="Cursor Color") class GPENCIL_MT_pie_tool_palette(Menu): |