Commit 178ac0b0 authored by Dirk Wilden's avatar Dirk Wilden

error on polyMesh smooth

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8664 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0a0a62ab
......@@ -111,6 +111,8 @@ void
SmootherPlugin::
slot_smooth()
{
bool found = false;
for ( PluginFunctions::ObjectIterator o_it(PluginFunctions::TARGET_OBJECTS,DATA_TRIANGLE_MESH) ;
o_it != PluginFunctions::objectsEnd(); ++o_it) {
......@@ -121,6 +123,8 @@ slot_smooth()
continue;
}
found = true;
SmootherObject* data = dynamic_cast< SmootherObject* > ( o_it->objectData(SMOOTHER) );
if (data == 0){
......@@ -171,6 +175,9 @@ slot_smooth()
emit updatedObject( o_it->id() );
}
if ( !found )
emit log(LOGERR , tr("Unable to smooth. No triangle mesh selected as target!") );
}
......
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