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

Request face normals and update view. refs #671

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14563 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ed4926d6
......@@ -109,6 +109,8 @@ int FileSTLPlugin::loadObject(QString _filename) {
std::string filename = std::string( _filename.toUtf8() );
object->mesh()->request_face_normals();
// load file
bool ok = OpenMesh::IO::read_mesh( (*object->mesh()) , filename );
if (!ok)
......@@ -122,11 +124,13 @@ int FileSTLPlugin::loadObject(QString _filename) {
object->mesh()->update_normals();
object->update();
object->show();
emit openedFile( object->id() );
// Update viewport
PluginFunctions::viewAll();
return object->id();
} else {
......
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