Fix warning from previous commit:
Set slot to NULL when no active slot is found.
This commit is contained in:
parent
1a0ef58bdf
commit
17cb55e442
@ -1126,6 +1126,8 @@ class VIEW3D_PT_slots_projectpaint(View3DPanel, Panel):
|
||||
|
||||
if mat.texture_paint_slots:
|
||||
slot = mat.texture_paint_slots[mat.paint_active_slot]
|
||||
else:
|
||||
slot = None
|
||||
|
||||
if (not mat.use_nodes) and context.scene.render.engine in {'BLENDER_RENDER', 'BLENDER_GAME'}:
|
||||
row = col.row(align=True)
|
||||
|
Loading…
Reference in New Issue
Block a user