diff --git a/FileOFF.cc b/FileOFF.cc index 5e7e7f50d2e70aa356de87d0e9dfea3c0c45b4bc..46a4505a8391543e5565c645b61d35a5ee91bca1 100644 --- a/FileOFF.cc +++ b/FileOFF.cc @@ -1220,10 +1220,13 @@ int FileOFFPlugin::loadObject(QString _filename) { if ( polyMeshObj ){ - if ( !importer.hasVertexNormals() ) + if ( !importer.hasVertexNormals() || (userReadOptions_ & OFFImporter::FORCE_NONORMALS) ) { + emit log(LOGINFO, tr("loadObject: Computing vertex and face normals.") ); polyMeshObj->mesh()->update_normals(); - else + } else { + emit log(LOGINFO, tr("loadObject: Computing face normals.") ); polyMeshObj->mesh()->update_face_normals(); + } backupTextureCoordinates(*(polyMeshObj->mesh())); } @@ -1233,10 +1236,13 @@ int FileOFFPlugin::loadObject(QString _filename) { if ( triMeshObj ){ - if ( !importer.hasVertexNormals() || (userReadOptions_ & OFFImporter::FORCE_NONORMALS) ) + if ( !importer.hasVertexNormals() || (userReadOptions_ & OFFImporter::FORCE_NONORMALS) ) { + emit log(LOGINFO, tr("loadObject: Computing vertex and face normals.") ); triMeshObj->mesh()->update_normals(); - else + } else { + emit log(LOGINFO, tr("loadObject: Computing face normals.") ); triMeshObj->mesh()->update_face_normals(); + } backupTextureCoordinates(*(triMeshObj->mesh())); }