diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-15 23:24:07 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-15 23:24:07 +0400 |
commit | 85530846b66c3e206dee82a1eb64d28a924bfc9e (patch) | |
tree | fcb1419b4674c98a3bf23955846dddf0adc795b1 | |
parent | 693f687ebf25458c94cf823bd14796cabf8fa421 (diff) |
Fix #35376: node editor throwing python error on some files saved with 2.66 test builds.
-rw-r--r-- | release/scripts/startup/bl_ui/space_node.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index aca449ee368..b54162a0cb4 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -77,8 +77,9 @@ class NODE_HT_header(Header): layout.prop(snode_id, "use_nodes") elif snode.tree_type == 'CompositorNodeTree': - layout.prop(snode_id, "use_nodes") - layout.prop(snode_id.render, "use_free_unused_nodes", text="Free Unused") + if snode_id: + layout.prop(snode_id, "use_nodes") + layout.prop(snode_id.render, "use_free_unused_nodes", text="Free Unused") layout.prop(snode, "show_backdrop") if snode.show_backdrop: row = layout.row(align=True) |