diff --git a/core/src/net/sf/openrocket/document/OpenRocketDocument.java b/core/src/net/sf/openrocket/document/OpenRocketDocument.java index b62c7938b..3cf2a78a7 100644 --- a/core/src/net/sf/openrocket/document/OpenRocketDocument.java +++ b/core/src/net/sf/openrocket/document/OpenRocketDocument.java @@ -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(); } diff --git a/core/src/net/sf/openrocket/rocketcomponent/Rocket.java b/core/src/net/sf/openrocket/rocketcomponent/Rocket.java index c60dc473c..ae3bf05fe 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/Rocket.java +++ b/core/src/net/sf/openrocket/rocketcomponent/Rocket.java @@ -387,6 +387,7 @@ public class Rocket extends ComponentAssembly { this.functionalModID = r.functionalModID; this.refType = r.refType; this.customReferenceLength = r.customReferenceLength; + this.stageMap = r.stageMap; // these flight configurations need to reference the _this_ Rocket: this.configSet.setDefault(new FlightConfiguration(this));