Move node back to original position.
(self)
| 643 | return False |
| 644 | |
| 645 | def undo(self) -> bool: |
| 646 | """Move node back to original position.""" |
| 647 | try: |
| 648 | self.node.setPos(self.old_position) |
| 649 | self._mark_undone() |
| 650 | return True |
| 651 | except Exception as e: |
| 652 | print(f"Failed to undo node move: {e}") |
| 653 | return False |
| 654 | |
| 655 | def can_merge_with(self, other: CommandBase) -> bool: |
| 656 | """Check if this move can be merged with another move.""" |