From f98a8749dbec8a6d973b63f5db8f649eea581137 Mon Sep 17 00:00:00 2001 From: JoePfeiffer Date: Thu, 2 Mar 2023 11:56:37 -0700 Subject: [PATCH] Don't terminate modID update/simulation save option search loop early --- .../openrocket/file/openrocket/importt/OpenRocketLoader.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/net/sf/openrocket/file/openrocket/importt/OpenRocketLoader.java b/core/src/net/sf/openrocket/file/openrocket/importt/OpenRocketLoader.java index d1a8e82c8..971a1da57 100644 --- a/core/src/net/sf/openrocket/file/openrocket/importt/OpenRocketLoader.java +++ b/core/src/net/sf/openrocket/file/openrocket/importt/OpenRocketLoader.java @@ -61,7 +61,7 @@ public class OpenRocketLoader extends AbstractRocketLoader { } // If we saved data for a simulation before, we'll use that as our default option this time - boolean saveData = false; + // Also, updaet all the sims' modIDs to agree with flight config for (Simulation s : doc.getSimulations()) { s.syncModID(); // The config's modID can be out of sync with the simulation's after the whole loading process if (s.getStatus() == Simulation.Status.EXTERNAL || @@ -79,8 +79,6 @@ public class OpenRocketLoader extends AbstractRocketLoader { continue; doc.getDefaultStorageOptions().setSaveSimulationData(true); - break; - } doc.getDefaultStorageOptions().setExplicitlySet(false);