Fix #37348, Different behaviour in Node editor. Adding nodes from the search operator now also removes them again if the subsequent transform is cancelled, like with the regular node shift+A menu
operators.
This commit is contained in:
@@ -222,7 +222,7 @@ class NODE_OT_add_search(NodeAddOperator, Operator):
|
||||
self.create_node(context, item.nodetype)
|
||||
|
||||
if self.use_transform:
|
||||
bpy.ops.transform.translate('INVOKE_DEFAULT')
|
||||
bpy.ops.transform.translate('INVOKE_DEFAULT', remove_on_cancel=True)
|
||||
|
||||
return {'FINISHED'}
|
||||
else:
|
||||
|
Reference in New Issue
Block a user