diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-03-22 17:08:37 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-03-22 17:08:37 +0400 |
commit | 309c487b966fd8e82ae5e03abf1d8e6f57d59b2b (patch) | |
tree | 76fef8a8e388dea9406521fef8164b7400ae4e87 /release/scripts/startup/bl_operators/node.py | |
parent | 7f86b8afeba44e4ef60d3a195662d94cac491c74 (diff) |
Fix for the use_hidden_preview setting in SpaceNode. The application of this flag to new nodes got lost during merges at some point. Also is now in the python node.add_node operator as well as the C function.
Diffstat (limited to 'release/scripts/startup/bl_operators/node.py')
-rw-r--r-- | release/scripts/startup/bl_operators/node.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/node.py b/release/scripts/startup/bl_operators/node.py index 9839e0ee092..5c7f3c3f4b2 100644 --- a/release/scripts/startup/bl_operators/node.py +++ b/release/scripts/startup/bl_operators/node.py @@ -44,6 +44,9 @@ class NodeAddOperator(): node = tree.nodes.new(type=node_type) + if space.use_hidden_preview: + node.show_preview = False + node.select = True tree.nodes.active = node node.location = space.cursor_location |