Fix T44624: world menu appears in node editor header with Blender internal.

This commit is contained in:
Brecht Van Lommel 2015-05-06 21:54:13 +02:00
parent 4a5933bb74
commit 7c3a714124
Notes: blender-bot 2023-02-14 09:09:44 +01:00
Referenced by issue #44624, World menu appears in Material node header
1 changed files with 1 additions and 1 deletions

View File

@ -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")