[Bf-blender-cvs] [bab63f382ea] greasepencil-object: GPencil: Remove duplicated code

Antonio Vazquez noreply at git.blender.org
Thu Feb 27 14:28:10 CET 2020


Commit: bab63f382ea9d03b7b45281c3430de268456a003
Author: Antonio Vazquez
Date:   Thu Feb 27 14:27:49 2020 +0100
Branches: greasepencil-object
https://developer.blender.org/rBbab63f382ea9d03b7b45281c3430de268456a003

GPencil: Remove duplicated code

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 980ad7cfcaa..4e6e6e3d148 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -2138,7 +2138,6 @@ class VIEW3D_PT_tools_grease_pencil_brush_mixcolor(View3DPanel, Panel):
         brush = settings.brush
         gp_settings = brush.gpencil_settings
 
-        layout.enabled = settings.use_vertex_color == 'VERTEXCOLOR' or brush.gpencil_tool == 'TINT'
         col = layout.column()
         col.enabled = settings.use_vertex_color == 'VERTEXCOLOR' or brush.gpencil_tool == 'TINT'
 
@@ -2190,7 +2189,6 @@ class VIEW3D_PT_tools_grease_pencil_brush_mix_palette(View3DPanel, Panel):
         ts = context.tool_settings
         settings = ts.gpencil_paint
         brush = settings.brush
-        layout.enabled = settings.use_vertex_color == 'VERTEXCOLOR' or brush.gpencil_tool == 'TINT'
 
         col = layout.column()
         col.enabled = settings.use_vertex_color == 'VERTEXCOLOR' or brush.gpencil_tool == 'TINT'



More information about the Bf-blender-cvs mailing list