From e02f75a29cc61d648b880128719d7d3dca71f838 Mon Sep 17 00:00:00 2001 From: SiboVG Date: Sun, 14 Aug 2022 00:26:46 +0200 Subject: [PATCH] [#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,