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

Dennis: Call updatedObject after decimation.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6883 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1b259e7a
...@@ -96,7 +96,7 @@ bool DecimaterPlugin::initializeToolbox(QWidget*& _widget) ...@@ -96,7 +96,7 @@ bool DecimaterPlugin::initializeToolbox(QWidget*& _widget)
*/ */
void DecimaterPlugin::pluginsInitialized() { void DecimaterPlugin::pluginsInitialized() {
emit setSlotDescription("decimate(int,Object)",tr("Decimate a given object"), emit setSlotDescription("decimate(int,QVariantMap)",tr("Decimate a given object"),
QString(tr("objectId,constraints")).split(","), QString(tr("objectId,constraints")).split(","),
QString(tr("ID of an object; Object that can has one or more constraint properties (distance,normal_deviation,roundness,vertices)")).split(";")); QString(tr("ID of an object; Object that can has one or more constraint properties (distance,normal_deviation,roundness,vertices)")).split(";"));
} }
...@@ -179,6 +179,7 @@ void DecimaterPlugin::slot_decimate() ...@@ -179,6 +179,7 @@ void DecimaterPlugin::slot_decimate()
object->mesh()->update_normals(); object->mesh()->update_normals();
object->update(); object->update();
emit updatedObject( o_it->id() );
} }
emit updateView(); emit updateView();
...@@ -286,11 +287,14 @@ void DecimaterPlugin::decimate(int _objID, QVariantMap _constraints){ ...@@ -286,11 +287,14 @@ void DecimaterPlugin::decimate(int _objID, QVariantMap _constraints){
object->mesh()->update_normals(); object->mesh()->update_normals();
object->update(); object->update();
emit updatedObject( baseObjectData->id() );
} else { } else {
emit log(LOGERR,tr("Unsupported object type for decimater")); emit log(LOGERR,tr("Unsupported object type for decimater"));
return; return;
} }
emit updateView();
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
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