diff options
author | Thomas Dinges <blender@dingto.org> | 2012-01-25 00:56:19 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2012-01-25 00:56:19 +0400 |
commit | fb1fba1454765f746df93cffc2ec6e3e2d9ff3bc (patch) | |
tree | 7edae96032682c88247fcc28605e74b46d10e0d9 /release | |
parent | 5cf9f8ab908ac4dab9b22e55ec760a8c574b51d3 (diff) |
Node UI:
* Make sure to check on snode_id, raised errors if no world datablock was active.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_node.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index f875fab415f..d29dff49132 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -61,7 +61,8 @@ class NODE_HT_header(Header): if snode.shader_type == 'WORLD': layout.template_ID(scene, "world", new="world.new") - layout.prop(snode_id, "use_nodes") + if snode_id: + layout.prop(snode_id, "use_nodes") elif snode.tree_type == 'TEXTURE': layout.prop(snode, "texture_type", text="", expand=True) |