Commit: 0b60fb5ec245db5b14bd51bce216efff462fad75
Author: Antonio Vazquez
Date:   Tue Dec 17 17:27:49 2019 +0100
Branches: master
https://developer.blender.org/rB0b60fb5ec245db5b14bd51bce216efff462fad75

GPencil: Cleanup - Remove duplicated code

===================================================================

M       release/scripts/startup/bl_ui/properties_grease_pencil_common.py

===================================================================

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):

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to