Merge pull request #1586 from SiboVG/issue-1574

[#1574] Fix motor flame lighting when no motor
This commit is contained in:
SiboVG 2022-08-17 12:59:43 +02:00 committed by GitHub
commit fe2992ff70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -305,6 +305,9 @@ public class FlightConfiguration implements FlightConfigurableParameter<FlightCo
while (!toProcess.isEmpty()) {
RocketComponent comp = toProcess.poll();
if (comp == null) {
continue;
}
toReturn.add(comp);
for (RocketComponent child : comp.getChildren()) {

View File

@ -381,7 +381,7 @@ public class DebugLogDialog extends JDialog {
});
GUIUtil.setDisposableDialogOptions(this, close);
setLocationRelativeTo(null);
setLocationRelativeTo(parent);
followBox.requestFocus();
}

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,