D5: Moved loading files code

This commit is contained in:
Victor Larchenko 2016-11-23 11:32:18 +06:00 committed by Youness Alaoui
parent cd7979e301
commit c18b3149da
5 changed files with 24 additions and 79 deletions

View file

@ -275,7 +275,7 @@ UM.MainWindow
// There is no endsWith in this version of JS...
if ((drop.urls[i].length <= 12) || (drop.urls[i].substring(drop.urls[i].length-12) !== ".curaprofile")) {
// Drop an object
Printer.loadFile(drop.urls[i]);
UM.MeshFileHandler.readLocalFile(drop.urls[i]);
if (imported_model == -1)
{
imported_model = i;
@ -737,7 +737,7 @@ UM.MainWindow
for(var i in fileUrls)
{
Printer.loadFile(fileUrls[i])
UM.MeshFileHandler.readLocalFile(fileUrls[i])
}
var meshName = backgroundItem.getMeshName(fileUrls[0].toString())