Commit 138383fc authored by Dirk Wilden's avatar Dirk Wilden
Browse files

loadSelection scriptingFunction

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6387 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 5e691998
......@@ -959,6 +959,25 @@ void SelectionPlugin::saveSelection( int _objectId , QString _filename)
emit log(LOGERR,"saveSelection : Unsupported object Type" );
}
//******************************************************************************
void SelectionPlugin::loadSelection( int _objectId , QString _filename)
{
if ( !_filename.isEmpty() ){
INIFile ini;
if ( ! ini.connect(_filename,false) ) {
emit log(LOGERR,"Failed to load Selection from file " + _filename);
return;
}
loadIniFile(ini, _objectId );
ini.disconnect();
}
}
//******************************************************************************
......
......@@ -472,6 +472,11 @@ class SelectionPlugin : public QObject, BaseInterface , MouseInterface, KeyInter
/// save Selection of one object
void saveSelection( int _objectId , QString _filename);
/// load Selection of one object
void loadSelection( int _objectId , QString _filename);
private slots:
void saveSelection( TriMesh& _mesh, QString _filename);
void saveSelection( PolyMesh& _mesh, QString _filename);
......
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