|
@@ -116,7 +116,7 @@ public class Canvas extends AbstractCanvas implements MouseListener, MouseMotion
|
|
|
// save old Position
|
|
|
savePos = new ArrayList<>();
|
|
|
for (int i = 0; i < animCps.size(); i++) {
|
|
|
- savePos.add(animCps.get(i).getPosition().clone());
|
|
|
+ savePos.add(new Vector2Int(animCps.get(i).getPosition()));
|
|
|
}
|
|
|
|
|
|
animT = new javax.swing.Timer(animDelay, actionEvent1 -> {
|
|
@@ -157,7 +157,7 @@ public class Canvas extends AbstractCanvas implements MouseListener, MouseMotion
|
|
|
controller.ungroupGroupNode((GroupNode) tempCps, groupNode);
|
|
|
|
|
|
for (int i = 0; i < animCps.size(); i++) {
|
|
|
- savePos.add(animCps.get(i).getPosition().clone());
|
|
|
+ savePos.add(new Vector2Int(animCps.get(i).getPosition()));
|
|
|
}
|
|
|
for (AbstractCanvasObject cps : animCps) {
|
|
|
int x = tempCps.getPosition().getX();
|