From 2184cc80e079e844d4b9102d71d2f3852088f6c3 Mon Sep 17 00:00:00 2001 From: Sibo Van Gool Date: Tue, 11 Jan 2022 23:49:19 +0100 Subject: [PATCH] [fixes #997] Update bottomStageNumber The bottomStage.getStageNumber() was called, but never assigned to bottomStageNumber. Now it is. This has the effect that the exhaust effects will start at the bottom stage instead of on the top stage, which was previously the case. --- swing/src/net/sf/openrocket/gui/figure3d/photo/PhotoPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swing/src/net/sf/openrocket/gui/figure3d/photo/PhotoPanel.java b/swing/src/net/sf/openrocket/gui/figure3d/photo/PhotoPanel.java index 2a7ad567d..4e9c4d34f 100644 --- a/swing/src/net/sf/openrocket/gui/figure3d/photo/PhotoPanel.java +++ b/swing/src/net/sf/openrocket/gui/figure3d/photo/PhotoPanel.java @@ -422,7 +422,7 @@ public class PhotoPanel extends JPanel implements GLEventListener { AxialStage bottomStage = configuration.getBottomStage(); int bottomStageNumber = 0; if (bottomStage != null) - bottomStage.getStageNumber(); + bottomStageNumber = bottomStage.getStageNumber(); //final int currentStageNumber = configuration.getActiveStages()[configuration.getActiveStages().length-1]; //final AxialStage currentStage = (AxialStage)configuration.getRocket().getChild( bottomStageNumber);