diff --git a/src/comm/MAVLinkXMLParser.cc b/src/comm/MAVLinkXMLParser.cc index d4b7dfef67b85408ba6bf4c9491c130a5918f17e..d3faa97bebcb307dd9a19f613aa51e560afbfb31 100644 --- a/src/comm/MAVLinkXMLParser.cc +++ b/src/comm/MAVLinkXMLParser.cc @@ -443,10 +443,10 @@ bool MAVLinkXMLParser::generate() rawHeader.write(mainHeader.toLatin1()); // Write C structs / lcm definitions - QFile lcmStructs(outputDirName + "/mavlink.lcm"); - ok = lcmStructs.open(QIODevice::WriteOnly | QIODevice::Text); - success = success && ok; - lcmStructs.write(lcmStructDefs.toLatin1()); +// QFile lcmStructs(outputDirName + "/mavlink.lcm"); +// ok = lcmStructs.open(QIODevice::WriteOnly | QIODevice::Text); +// success = success && ok; +// lcmStructs.write(lcmStructDefs.toLatin1()); return success; } diff --git a/src/ui/map3D/Q3DWidget.cc b/src/ui/map3D/Q3DWidget.cc index 9cddfcefff758907a6f143a7bcecf92b0aa57300..be296cb7ddf2fa7b22321ee053b9cf6a66875db6 100755 --- a/src/ui/map3D/Q3DWidget.cc +++ b/src/ui/map3D/Q3DWidget.cc @@ -495,6 +495,7 @@ Q3DWidget::initializeGL(void) glEnable(GL_DEPTH_TEST); glShadeModel(GL_SMOOTH); + glLightfv(GL_LIGHT0, GL_AMBIENT, lightAmbient); glLightfv(GL_LIGHT0, GL_DIFFUSE, lightDiffuse); glLightfv(GL_LIGHT0, GL_SPECULAR, lightSpecular);