Commit eaec64a2 authored by Jan Möbius's avatar Jan Möbius
Browse files

Uncomment unused variables

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13378 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6d94af55
......@@ -87,7 +87,7 @@ int FileViewPlugin::loadObject(QString _filename) {
bool e_eye = false;
bool e_center = false;
bool e_up = false;
bool e_fovy = false;
// bool e_fovy = false;
bool e_background = false;
QSettings settings(_filename, QSettings::IniFormat);
......@@ -124,11 +124,11 @@ int FileViewPlugin::loadObject(QString _filename) {
e_up = true;
}
if(settings.contains("Fovy")) {
fovy = settings.value("Fovy").toDouble();
std::cerr << "Setting fovy to " << fovy << std::endl;
e_fovy = true;
}
// if(settings.contains("Fovy")) {
// fovy = settings.value("Fovy").toDouble();
// std::cerr << "Setting fovy to " << fovy << std::endl;
// e_fovy = true;
// }
if(settings.contains("BackgroundR")) {
background[0] = settings.value("BackgroundR").toDouble();
......@@ -151,10 +151,10 @@ int FileViewPlugin::loadObject(QString _filename) {
Viewer::ViewerProperties& props = PluginFunctions::viewerProperties(i);
ACG::GLState& state = props.glState();
// Perspective update
double aspect = 0.0;
if(e_widthAndHeight) aspect = width / height;
else aspect = state.aspect();
// // Perspective update
// double aspect = 0.0;
// if(e_widthAndHeight) aspect = width / height;
// else aspect = state.aspect();
// Set projection matrix
//if(e_fovy)
......
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