Move node to new position.
(self)
| 633 | self.new_position = new_position |
| 634 | |
| 635 | def execute(self) -> bool: |
| 636 | """Move node to new position.""" |
| 637 | try: |
| 638 | self.node.setPos(self.new_position) |
| 639 | self._mark_executed() |
| 640 | return True |
| 641 | except Exception as e: |
| 642 | print(f"Failed to move node: {e}") |
| 643 | return False |
| 644 | |
| 645 | def undo(self) -> bool: |
| 646 | """Move node back to original position.""" |