Commit 9e833c38 authored by Jan Möbius's avatar Jan Möbius

Fixed crash when trying to save object via script with an id that does not exist.

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9ae65530
......@@ -172,7 +172,10 @@ int FileSTLPlugin::loadObject(QString _filename) {
bool FileSTLPlugin::saveObject(int _id, QString _filename)
BaseObjectData* object;
if ( !PluginFunctions::getObject(_id,object) ) {
emit log(LOGERR, tr("saveObject : cannot get object id %1 for save name %2").arg(_id).arg(_filename) );
return false;
std::string filename = std::string( _filename.toUtf8() );
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment