Commit a6cf9e00 authored by Mike Kremer's avatar Mike Kremer
Browse files

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 c60d5add
......@@ -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"));
......
......@@ -186,7 +186,7 @@ void IsotropicRemesherPlugin::isotropicRemesh(int _objectID, double _targetEdgeL
emit createBackup(object->id(),"Isotropic Remeshing with Target length: " + QString::number(edgeLength_) );
emit scriptInfo(tr("isotropicRemesh(%1, %2)").arg(QString::number(_objectID), QString::number(_targetEdgeLength)));
emit scriptInfo("isotropicRemesh(" + QString::number(_objectID) + ", " + QString::number(_targetEdgeLength) + ")");
emit updateView();
......
......@@ -178,7 +178,9 @@ void SmootherPlugin::simpleLaplace(int _iterations) {
mesh->update_normals();
emit updatedObject( o_it->id(), UPDATE_GEOMETRY );
// Create backup
emit createBackup(o_it->id(), "Simple Smoothing");
} else if ( o_it->dataType( DATA_POLY_MESH ) ) {
......@@ -256,7 +258,9 @@ void SmootherPlugin::simpleLaplace(int _iterations) {
}
// Show script logging
emit scriptInfo(tr("simpleLaplace(%1)").arg(_iterations));
emit scriptInfo("simpleLaplace(" + QString::number(_iterations) + ")");
emit updateView();
}
......
......@@ -80,7 +80,7 @@ class SmootherPlugin : public QObject, BaseInterface, ToolboxInterface, LoggingI
void scriptInfo(QString _functionName);
// BackupInterface
void createBackup(int _objectId, QString _description);
void createBackup( int _id , QString _name );
public:
......
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