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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user