forked from bartvdbraak/blender
Fix T44624: world menu appears in node editor header with Blender internal.
This commit is contained in:
parent
4a5933bb74
commit
7c3a714124
@ -67,7 +67,7 @@ class NODE_HT_header(Header):
|
||||
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':
|
||||
if scene.render.use_shading_nodes and snode.shader_type == 'WORLD':
|
||||
row = layout.row()
|
||||
row.enabled = not snode.pin
|
||||
row.template_ID(scene, "world", new="world.new")
|
||||
|
Loading…
Reference in New Issue
Block a user