diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-07-20 15:18:29 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-07-20 15:18:29 +0400 |
commit | d8792465e08313d7ca11ea6f821886330f499540 (patch) | |
tree | 86c863125e0912437f865786e9f0941e619a19cd /release/scripts/ui/properties_material.py | |
parent | c547323f1c1aaa94d4b3a3159508138f58404608 (diff) |
Fix for python error in material panel.
Diffstat (limited to 'release/scripts/ui/properties_material.py')
-rw-r--r-- | release/scripts/ui/properties_material.py | 3 |
1 files changed, 2 insertions, 1 deletions
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="") |