// move nodes to new position
if (moveCommand == null || moveCommand2 == null) {
// make a new move commands
moveCommand = new MoveCommand(movingNodeList.get(0), movement1.getX(), movement1.getY());
moveCommand2 = new MoveCommand(movingNodeList.get(1), movement2.getX(), movement2.getY());
Command c = new SequenceCommand(tr("Extrude Way"), moveCommand, moveCommand2);
Main.main.undoRedo.add(c);
} else {
// reuse existing move commands
moveCommand.moveAgainTo(movement1.getX(), movement1.getY());
moveCommand2.moveAgainTo(movement2.getX(), movement2.getY());