Commit 1a997061 authored by Isaak Lim's avatar Isaak Lim

- now the decimater objects are cleared before an undo happens

closes #1026

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15609 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1b84b1e1
......@@ -769,6 +769,13 @@ void DecimaterPlugin::objectDeleted(int _id)
//-----------------------------------------------------------------------------
void DecimaterPlugin::slotAboutToRestore(int _id)
{
decimater_objects_.clear();
}
//-----------------------------------------------------------------------------
void DecimaterPlugin::slotObjectUpdated(int /*_identifier*/ , const UpdateType& _type )
{
if ( _type.contains(UPDATE_TOPOLOGY) ) {
......
......@@ -113,13 +113,13 @@ signals:
// RPC Interface
void pluginExists( QString _pluginName , bool& _exists ) ;
void functionExists( QString _pluginName , QString _functionName , bool& _exists );
// ToolboxInterface
void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
// ScriptInterface
void scriptInfo( QString _functionName );
// BackupInterface
void createBackup( int _id , QString _name, UpdateType _type = UPDATE_ALL );
......@@ -127,12 +127,14 @@ private slots:
// BaseInterface
void initializePlugin();
void pluginsInitialized();
void slotObjectUpdated( int _identifier , const UpdateType& _type ); // BaseInterface
void slotObjectSelectionChanged( int _identifier ); // BaseInterface
void objectDeleted(int _id); //LoadSaveInterface
void slotAboutToRestore(int _id); //BackupInterface
public :
/// Default constructor
......@@ -153,7 +155,7 @@ private :
typedef OpenMesh::Decimater::DecimaterT< TriMesh > DecimaterType;
typedef OpenMesh::Decimater::McDecimaterT< TriMesh > McDecimaterType;
typedef OpenMesh::Decimater::MixedDecimaterT< TriMesh > MixedDecimaterType;
typedef OpenMesh::Decimater::ModAspectRatioT< TriMesh >::Handle ModAspectRatioH;
typedef OpenMesh::Decimater::ModEdgeLengthT< TriMesh >::Handle ModEdgeLengthH;
typedef OpenMesh::Decimater::ModHausdorffT< TriMesh >::Handle ModHausdorffH;
......
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