Commit 6c3de7ce authored by Jan Möbius's avatar Jan Möbius

Log information about computed normals

parent 89e36fe2
......@@ -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()));
}
......
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