Commit 19090b39 authored by Dirk Wilden's avatar Dirk Wilden
Browse files

small bugfix

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8103 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 40d1b492
......@@ -289,15 +289,15 @@ void FileOBJPlugin::addNewObject( OBJImporter& _importer, QString _name )
}
//force gui settings
if ( OpenFlipper::Options::gui() ){
if ( OpenFlipper::Options::gui() && loadOptions_ != 0 ){
if (loadFaceColor_ && !loadFaceColor_->isChecked() )
if ( !loadFaceColor_->isChecked() )
_importer.objectOptions()[ _importer.currentObject() ] |= OBJImporter::FORCE_NOCOLOR;
if (loadNormals_ && !loadNormals_->isChecked() )
if ( !loadNormals_->isChecked() )
_importer.objectOptions()[ _importer.currentObject() ] |= OBJImporter::FORCE_NONORMALS;
if (loadTexCoords_ && !loadTexCoords_->isChecked() )
if ( !loadTexCoords_->isChecked() )
_importer.objectOptions()[ _importer.currentObject() ] |= OBJImporter::FORCE_NOTEXTURES;
}
......
Supports Markdown
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