From e02f75a29cc61d648b880128719d7d3dca71f838 Mon Sep 17 00:00:00 2001 From: SiboVG Date: Sun, 14 Aug 2022 00:26:46 +0200 Subject: [PATCH 1/3] [#1574] Fix flame lighting when config has no motors --- 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 4e9c4d34f..d51dded35 100644 --- a/swing/src/net/sf/openrocket/gui/figure3d/photo/PhotoPanel.java +++ b/swing/src/net/sf/openrocket/gui/figure3d/photo/PhotoPanel.java @@ -393,7 +393,7 @@ public class PhotoPanel extends JPanel implements GLEventListener { gl.glTranslated(dx - p.getAdvance(), 0, 0); - if (p.isFlame()) { + if (p.isFlame() && configuration.hasMotors()) { convertColor(p.getFlameColor(), color); gl.glLightfv(GLLightingFunc.GL_LIGHT2, GLLightingFunc.GL_AMBIENT, From 9b4ccbf2e6d12d38a7a253c318d84339594b8913 Mon Sep 17 00:00:00 2001 From: SiboVG Date: Sun, 14 Aug 2022 10:34:00 +0200 Subject: [PATCH 2/3] Fix exception when deleting config while PhotoStudio open --- .../net/sf/openrocket/rocketcomponent/FlightConfiguration.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java b/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java index d8f21cbc9..72fdacac1 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java +++ b/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java @@ -305,6 +305,9 @@ public class FlightConfiguration implements FlightConfigurableParameter Date: Sun, 14 Aug 2022 10:43:52 +0200 Subject: [PATCH 3/3] Center debug log to center of BasicFrame instead of screen --- swing/src/net/sf/openrocket/gui/dialogs/DebugLogDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swing/src/net/sf/openrocket/gui/dialogs/DebugLogDialog.java b/swing/src/net/sf/openrocket/gui/dialogs/DebugLogDialog.java index a64c8de5c..4a2e81794 100644 --- a/swing/src/net/sf/openrocket/gui/dialogs/DebugLogDialog.java +++ b/swing/src/net/sf/openrocket/gui/dialogs/DebugLogDialog.java @@ -381,7 +381,7 @@ public class DebugLogDialog extends JDialog { }); GUIUtil.setDisposableDialogOptions(this, close); - setLocationRelativeTo(null); + setLocationRelativeTo(parent); followBox.requestFocus(); }