History

Add parameter that enables automatically adding download model to world

David Rowe committed 10 years ago

Commit 12747d21 parent 97407e16 files · +26 −8Browse files

Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 6 files). Show all

Unified · Split

libraries/script-engine/src/FileScriptingInterface.cpp+2−2
@@ -31,7 +31,7 @@ FileScriptingInterface::FileScriptingInterface(QObject* parent) : QObject(parent · 30 unmodified lines
3131 // nothing for now
3232 }
3333
34−void FileScriptingInterface::runUnzip(QString path, QUrl url) {
34+void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd) {
3535 qDebug() << "Url that was downloaded: " + url.toString();
3636 qDebug() << "Path where download is saved: " + path;
3737 QString fileName = "/" + path.section("/", -1);
@@ -47,7 +47,7 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url) { · 9 unmodified lines
4747 if (file != "") {
4848 qDebug() << "Object file to upload: " + file;
4949 QUrl url = QUrl::fromLocalFile(file);
50− emit unzipSuccess(url.toString());
50+ emit unzipSuccess(url.toString(), autoAdd);
5151 } else {
5252 qDebug() << "unzip failed";
5353 }