Skip to content

Commit 752bc5f

Browse files
author
Leandro Inocencio
committed
Fix: The logic of the undo / redo is reversed
1 parent 8fade98 commit 752bc5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NodeGraphQt/base/commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def set_visible(self, visible):
336336
node_view.post_init()
337337

338338
def undo(self):
339-
self.set_visible(self.visible)
340-
341-
def redo(self):
342339
self.set_visible(not self.visible)
340+
341+
def redo(self):
342+
self.set_visible(self.visible)

0 commit comments

Comments
 (0)