Fix for python error in material panel.

This commit is contained in:
Brecht Van Lommel 2010-07-20 11:18:29 +00:00
parent c547323f1c
commit d8792465e0

@ -118,7 +118,8 @@ class MATERIAL_PT_context_material(MaterialButtonsPanel):
if ob:
split.template_ID(ob, "active_material", new="material.new")
row = split.row()
row.prop(mat, "use_nodes", icon="NODETREE", text="")
if mat:
row.prop(mat, "use_nodes", icon="NODETREE", text="")
if slot:
row.prop(slot, "link", text="")