Commit 2e53f9a9 authored by Dirk Wilden's avatar Dirk Wilden

createBackup

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11279 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2d0570cc
...@@ -202,8 +202,7 @@ slot_smooth() ...@@ -202,8 +202,7 @@ slot_smooth()
mesh->garbage_collection(); mesh->garbage_collection();
emit updatedObject( o_it->id(), UPDATE_GEOMETRY ); emit updatedObject( o_it->id(), UPDATE_GEOMETRY );
emit createBackup(o_it->id(), "Smoothing", UPDATE_GEOMETRY );
emit createBackup(o_it->id(),jobDescription );
} }
if ( !found ) if ( !found )
...@@ -312,7 +311,7 @@ void SmootherPlugin::smooth(int _objectId , int _iterations , QString _direction ...@@ -312,7 +311,7 @@ void SmootherPlugin::smooth(int _objectId , int _iterations , QString _direction
emit updatedObject( object->id(), UPDATE_GEOMETRY ); emit updatedObject( object->id(), UPDATE_GEOMETRY );
// Create backup // Create backup
emit createBackup(object->id(),jobDescription ); emit createBackup(object->id(),"Smoothing", UPDATE_GEOMETRY );
emit scriptInfo(tr("smooth(%1, %2, %3, %4, %5)").arg(QString::number(_objectId), QString::number(_iterations), emit scriptInfo(tr("smooth(%1, %2, %3, %4, %5)").arg(QString::number(_objectId), QString::number(_iterations),
_direction, _continuity, QString::number(_maxDistance))); _direction, _continuity, QString::number(_maxDistance)));
......
...@@ -102,7 +102,7 @@ signals: ...@@ -102,7 +102,7 @@ signals:
void addToolbox( QString _name , QWidget* _widget, QIcon* _icon ); void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
// BackupInterface // BackupInterface
void createBackup( int _id , QString _name ); void createBackup( int _id , QString _name, UpdateType _type = UPDATE_ALL );
// ScriptInterface // ScriptInterface
void scriptInfo(QString _functionName); void scriptInfo(QString _functionName);
......
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