Commit b83e4d2c authored by Mike Kremer's avatar Mike Kremer

Removed tr() from scriptInfo signal. Added some missing createBackups. Everything should work now.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9761 383ad7c9-94d9-4d36-a494-682f7c89f535
parent fa30a6cb
......@@ -180,6 +180,8 @@ void DecimaterPlugin::slot_decimate()
object->mesh()->update_normals();
object->update();
// Create backup
emit createBackup(o_it->id(), "Decimation");
emit updatedObject( o_it->id() , UPDATE_TOPOLOGY );
}
......@@ -288,8 +290,6 @@ void DecimaterPlugin::decimate(int _objID, QVariantMap _constraints) {
object->mesh()->update_normals();
object->update();
emit updatedObject( baseObjectData->id() , UPDATE_TOPOLOGY);
// Create backup
emit createBackup(_objID, "Decimation");
......@@ -299,7 +299,9 @@ void DecimaterPlugin::decimate(int _objID, QVariantMap _constraints) {
", " + (_constraints.contains("roundness") ? tr("roundness = %1").arg(_constraints["roundness"].toString()) : "") +
", " + (_constraints.contains("vertices") ? tr("vertices = %1").arg(_constraints["vertices"].toString()) : "") + ")";
emit scriptInfo( tr("decimate(%1, %2)").arg(QString::number(_objID), param) );
emit scriptInfo( "decimate(" + QString::number(_objID) + ", " + param + ")" );
emit updatedObject( baseObjectData->id() , UPDATE_TOPOLOGY);
} else {
emit log(LOGERR,tr("Unsupported object type for decimater"));
......
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