Merge pull request #1586 from SiboVG/issue-1574
[#1574] Fix motor flame lighting when no motor
This commit is contained in:
commit
fe2992ff70
@ -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()) {
|
||||
|
@ -381,7 +381,7 @@ public class DebugLogDialog extends JDialog {
|
||||
});
|
||||
|
||||
GUIUtil.setDisposableDialogOptions(this, close);
|
||||
setLocationRelativeTo(null);
|
||||
setLocationRelativeTo(parent);
|
||||
followBox.requestFocus();
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user