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

View all after loading ply

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12501 383ad7c9-94d9-4d36-a494-682f7c89f535
parent cc034dc9
......@@ -323,6 +323,9 @@ int FilePLYPlugin::loadObject(QString _filename, DataType _type) {
emit openedFile( objectId );
}
// Update viewport
PluginFunctions::viewAll();
return objectId;
} else if ( _type == DATA_TRIANGLE_MESH) {
// If always open as TriMesh is selected
......@@ -336,6 +339,9 @@ int FilePLYPlugin::loadObject(QString _filename, DataType _type) {
emit openedFile( objectId );
}
// Update viewport
PluginFunctions::viewAll();
return objectId;
} else {
emit ( LOGERR, tr("FilePLYPlugin::loadObject(): Tried loading with unknown forced data type"));
......@@ -382,6 +388,9 @@ int FilePLYPlugin::loadObject(QString _filename) {
emit openedFile( objectId );
}
// Update viewport
PluginFunctions::viewAll();
return objectId;
} else {
......@@ -394,6 +403,10 @@ int FilePLYPlugin::loadObject(QString _filename) {
object->show();
emit openedFile( objectId );
}
// Update viewport
PluginFunctions::viewAll();
return objectId;
}
......@@ -422,6 +435,10 @@ int FilePLYPlugin::loadObject(QString _filename) {
object->show();
emit openedFile( objectId );
}
// Update viewport
PluginFunctions::viewAll();
return objectId;
}
......@@ -437,6 +454,9 @@ int FilePLYPlugin::loadObject(QString _filename) {
emit openedFile( objectId );
}
// Update viewport
PluginFunctions::viewAll();
return objectId;
} else {
// If always open as TriMesh is selected
......@@ -450,6 +470,9 @@ int FilePLYPlugin::loadObject(QString _filename) {
emit openedFile( objectId );
}
// Update viewport
PluginFunctions::viewAll();
return objectId;
}
......@@ -462,6 +485,9 @@ int FilePLYPlugin::loadObject(QString _filename) {
object->show();
emit openedFile( objectId );
// Update viewport
PluginFunctions::viewAll();
}
return objectId;
......
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