From 20ab8ef8b15b5bea46dee56815b9b64a78a3ccef Mon Sep 17 00:00:00 2001 From: JoePfeiffer Date: Wed, 9 Sep 2020 17:17:10 -0600 Subject: [PATCH] Only calculate instancemap from active components One thing to mention is I had a choice of either adding a special case for the rocket itself, or change the result of isStageActive for stage -1 to be true instead of false as previously. I couldn't see a place where the previous version mattered, so I changed it. --- .../rocketcomponent/FlightConfiguration.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java b/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java index 2cd14e701..9fbde793f 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java +++ b/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java @@ -204,7 +204,7 @@ public class FlightConfiguration implements FlightConfigurableParameter