Fix #36640: node editor header with world nodes not drawing correct after recent...
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 2 Sep 2013 14:14:02 +0000 (14:14 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 2 Sep 2013 14:14:02 +0000 (14:14 +0000)
release/scripts/startup/bl_ui/space_node.py

index 436170d2ca3eac1bd210d2665f134575d5fd066c..843bafabdec4361f853ec0bbfc3962fca44af9b2 100644 (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")