Texture Paint: remove odd UI behavior

Differential Revision: https://developer.blender.org/D3791
This commit is contained in:
Jacques Lucke 2018-10-15 12:16:54 +02:00
parent 8fa16411e6
commit d1145306ec
1 changed files with 1 additions and 1 deletions

View File

@ -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",