From d1145306ec606d8b271eabcb359aaa821c37e688 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 15 Oct 2018 12:16:54 +0200 Subject: Texture Paint: remove odd UI behavior Differential Revision: https://developer.blender.org/D3791 --- release/scripts/startup/bl_ui/space_view3d_toolbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '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", -- cgit v1.2.3