Commit 7606b5f4 authored by Isaak Lim's avatar Isaak Lim

added returns when the resulting object from getObject is 0

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14932 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 27e64f5d
......@@ -549,6 +549,7 @@ void MeshRepairPlugin::updateFaceNormals(int _objectId) {
if ( object == 0) {
emit log(LOGERR,tr("updateFaceNormals: Unable to get object %1. ").arg(_objectId) );
return;
}
if ( object->dataType(DATA_TRIANGLE_MESH) ) {
......@@ -577,6 +578,7 @@ void MeshRepairPlugin::updateHalfedgeNormals(int _objectId) {
if ( object == 0) {
emit log(LOGERR,tr("updateFaceNormals: Unable to get object %1. ").arg(_objectId) );
return;
}
if ( object->dataType(DATA_TRIANGLE_MESH) ) {
......@@ -608,6 +610,7 @@ void MeshRepairPlugin::updateVertexNormals(int _objectId){
if ( object == 0) {
emit log(LOGERR,tr("updateVertexNormals: Unable to get object %1. ").arg(_objectId) );
return;
}
if ( object->dataType(DATA_TRIANGLE_MESH) ) {
......@@ -634,6 +637,7 @@ void MeshRepairPlugin::updateNormals(int _objectId) {
if ( object == 0) {
emit log(LOGERR,tr("updateNormals: Unable to get object %1. ").arg(_objectId) );
return;
}
if ( object->dataType(DATA_TRIANGLE_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