There were several extra copies of the rocket made in the course of undo() -- they looked like debug code that had been left in. Removed now.

This commit is contained in:
JoePfeiffer 2021-12-09 09:32:53 -07:00
parent ae5ecb5f1d
commit 6c3bf5ef06

View File

@ -727,9 +727,7 @@ public class OpenRocketDocument implements ComponentChangeListener {
}
rocket.checkComponentStructure();
undoHistory.get(undoPosition).checkComponentStructure();
undoHistory.get(undoPosition).copyWithOriginalID().checkComponentStructure();
rocket.loadFrom(undoHistory.get(undoPosition).copyWithOriginalID());
rocket.loadFrom(undoHistory.get(undoPosition));
rocket.checkComponentStructure();
}