Cycles UI:

* Add World ID Block to World Shader Nodes.
This commit is contained in:
Thomas Dinges 2012-01-22 23:13:24 +00:00
parent 9dac61c74d
commit a004257e47

@ -58,6 +58,9 @@ class NODE_HT_header(Header):
# Don't show "Use Nodes" Button when Engine is BI for Lamps
if snode_id and not (scene.render.use_shading_nodes == 0 and ob.type == 'LAMP'):
layout.prop(snode_id, "use_nodes")
if snode.shader_type == 'WORLD':
layout.template_ID(scene, "world", new="world.new")
elif snode.tree_type == 'TEXTURE':
layout.prop(snode, "texture_type", text="", expand=True)