From d8792465e08313d7ca11ea6f821886330f499540 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 20 Jul 2010 11:18:29 +0000 Subject: [PATCH] Fix for python error in material panel. --- release/scripts/ui/properties_material.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/release/scripts/ui/properties_material.py b/release/scripts/ui/properties_material.py index 57488a57b89..8d379491983 100644 --- a/release/scripts/ui/properties_material.py +++ b/release/scripts/ui/properties_material.py @@ -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="")