[fixes #927] Don't simulate sims with no motors
This commit is contained in:
parent
115f679cdc
commit
ee536d3631
@ -718,7 +718,8 @@ public class RocketPanel extends JPanel implements TreeSelectionListener, Change
|
|||||||
// Re-run the present simulation(s)
|
// Re-run the present simulation(s)
|
||||||
List<Simulation> sims = new LinkedList<>();
|
List<Simulation> sims = new LinkedList<>();
|
||||||
for (Simulation sim : document.getSimulations()) {
|
for (Simulation sim : document.getSimulations()) {
|
||||||
if (sim.getStatus() == Simulation.Status.UPTODATE || sim.getStatus() == Simulation.Status.LOADED)
|
if (sim.getStatus() == Simulation.Status.UPTODATE || sim.getStatus() == Simulation.Status.LOADED
|
||||||
|
|| !document.getRocket().getFlightConfiguration(sim.getFlightConfigurationId()).hasMotors())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Find a Simulation based on the current flight configuration
|
// Find a Simulation based on the current flight configuration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user