Merge pull request #1064 from JoePfeiffer/fix-1007
Copy stageMap when loading a rocket's parameters from another rocket
This commit is contained in:
		
						commit
						52314dbc81
					
				@ -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();
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
@ -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));
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user