[#1574] Fix flame lighting when config has no motors
This commit is contained in:
parent
31139bbab2
commit
e02f75a29c
@ -393,7 +393,7 @@ public class PhotoPanel extends JPanel implements GLEventListener {
|
|||||||
|
|
||||||
gl.glTranslated(dx - p.getAdvance(), 0, 0);
|
gl.glTranslated(dx - p.getAdvance(), 0, 0);
|
||||||
|
|
||||||
if (p.isFlame()) {
|
if (p.isFlame() && configuration.hasMotors()) {
|
||||||
convertColor(p.getFlameColor(), color);
|
convertColor(p.getFlameColor(), color);
|
||||||
|
|
||||||
gl.glLightfv(GLLightingFunc.GL_LIGHT2, GLLightingFunc.GL_AMBIENT,
|
gl.glLightfv(GLLightingFunc.GL_LIGHT2, GLLightingFunc.GL_AMBIENT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user