[#1574] Fix flame lighting when config has no motors

This commit is contained in:
SiboVG 2022-08-14 00:26:46 +02:00
parent 31139bbab2
commit e02f75a29c

View File

@ -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,