[Bf-blender-cvs] [d1145306ec6] blender2.8: Texture Paint: remove odd UI behavior

Jacques Lucke noreply at git.blender.org
Mon Oct 15 12:17:50 CEST 2018


Commit: d1145306ec606d8b271eabcb359aaa821c37e688
Author: Jacques Lucke
Date:   Mon Oct 15 12:16:54 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBd1145306ec606d8b271eabcb359aaa821c37e688

Texture Paint: remove odd UI behavior

Differential Revision: https://developer.blender.org/D3791

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

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 0dcf8d73f77..8e06a811c5e 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -509,7 +509,7 @@ class VIEW3D_PT_slots_projectpaint(View3DPanel, Panel):
                                      ob, "material_slots",
                                      ob, "active_material_index", rows=2)
             mat = ob.active_material
-            if mat:
+            if mat and len(mat.texture_paint_images) > 0:
                 row = layout.row()
                 row.template_list("TEXTURE_UL_texpaintslots", "",
                                   mat, "texture_paint_images",



More information about the Bf-blender-cvs mailing list