Fix #36640: node editor header with world nodes not drawing correct after recent bugfix.

This commit is contained in:
Brecht Van Lommel
2013-09-02 14:14:02 +00:00
parent 529c6d0eeb
commit 55daa3cc6b

View File

@@ -65,6 +65,8 @@ class NODE_HT_header(Header):
layout.prop(snode_id, "use_nodes")
if snode.shader_type == 'WORLD':
row = layout.row()
row.enabled = not snode.pin
row.template_ID(scene, "world", new="world.new")
if snode_id:
row.prop(snode_id, "use_nodes")