[Bf-blender-cvs] [5a1ab3e9aeb] blender-v2.83-release: Fix T77067: GPencil Object without materials cannot use Vertex Color mode

Antonio Vazquez noreply at git.blender.org
Tue May 26 12:13:39 CEST 2020


Commit: 5a1ab3e9aeb310af8ce94af2eba0c648d19937cb
Author: Antonio Vazquez
Date:   Tue May 26 12:13:25 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB5a1ab3e9aeb310af8ce94af2eba0c648d19937cb

Fix T77067: GPencil Object without materials cannot use Vertex Color mode

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index ab48cd2ce90..bb67dc085b1 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -432,7 +432,7 @@ class _draw_tool_settings_context_mode:
 
             row.prop(gp_settings, "use_material_pin", text="")
 
-            if brush.gpencil_tool in {'DRAW', 'FILL'} and ma:
+            if brush.gpencil_tool in {'DRAW', 'FILL'}:
                 row.separator(factor=1.0)
                 subrow = row.row(align=True)
                 row.prop_enum(settings, "color_mode", 'MATERIAL', text="", icon='MATERIAL')



More information about the Bf-blender-cvs mailing list