Skip to content

Commit 17e308a

Browse files
authored
clear session fix.
1 parent 1bd06d1 commit 17e308a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NodeGraphQt/base/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ def clear_session(self):
692692
Clears the current node graph session.
693693
"""
694694
for n in self.all_nodes():
695-
self.delete_node(n)
695+
self._undo_stack.push(NodeRemovedCmd(self, n))
696696
self._undo_stack.clear()
697697
self._model.session = None
698698

0 commit comments

Comments
 (0)