* Make sure to check on snode_id, raised errors if no world datablock was active.
This commit is contained in:
Thomas Dinges 2012-01-24 20:56:19 +00:00
parent 5cf9f8ab90
commit fb1fba1454

@ -61,7 +61,8 @@ class NODE_HT_header(Header):
if snode.shader_type == 'WORLD': if snode.shader_type == 'WORLD':
layout.template_ID(scene, "world", new="world.new") layout.template_ID(scene, "world", new="world.new")
layout.prop(snode_id, "use_nodes") if snode_id:
layout.prop(snode_id, "use_nodes")
elif snode.tree_type == 'TEXTURE': elif snode.tree_type == 'TEXTURE':
layout.prop(snode, "texture_type", text="", expand=True) layout.prop(snode, "texture_type", text="", expand=True)