Commit a20106ca authored by lm's avatar lm

Merge branch 'master' of git@github.com:pixhawk/qgroundcontrol

parents 1134c31a cae1a59f
......@@ -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;
}
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment