Fix warning from previous commit:

Set slot to NULL when no active slot is found.
This commit is contained in:
Antonis Ryakiotakis 2015-01-28 15:24:21 +01:00
parent 1a0ef58bdf
commit 17cb55e442
1 changed files with 2 additions and 0 deletions

View File

@ -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)