[Bf-blender-cvs] [7c3a714] master: Fix T44624: world menu appears in node editor header with Blender internal.
Brecht Van Lommel
noreply at git.blender.org
Wed May 6 21:55:55 CEST 2015
Commit: 7c3a714124f1c5292284cec249052a26500cac5d
Author: Brecht Van Lommel
Date: Wed May 6 21:54:13 2015 +0200
Branches: master
https://developer.blender.org/rB7c3a714124f1c5292284cec249052a26500cac5d
Fix T44624: world menu appears in node editor header with Blender internal.
===================================================================
M release/scripts/startup/bl_ui/space_node.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py
index 18890aa..e20d980 100644
--- a/release/scripts/startup/bl_ui/space_node.py
+++ b/release/scripts/startup/bl_ui/space_node.py
@@ -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")
More information about the Bf-blender-cvs
mailing list