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:
authorAntonio Vazquez <blendergit@gmail.com>2019-12-17 19:27:49 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-12-17 19:27:49 +0300
commit0b60fb5ec245db5b14bd51bce216efff462fad75 (patch)
tree2acec284ff2d453573def56b42eab2d2cecea6cd /release/scripts/startup/bl_ui/properties_grease_pencil_common.py
parent7267d1fe30ed82462d57407f45948fb321b52ac5 (diff)
GPencil: Cleanup - Remove duplicated code
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.py12
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):