D6: Moved file loading code

This commit is contained in:
Victor Larchenko 2016-12-09 15:09:53 +06:00 committed by Youness Alaoui
parent 26fe0ddbb5
commit 3605403314
5 changed files with 69 additions and 5 deletions

View file

@ -26,7 +26,7 @@ Menu
return (index + 1) + ". " + path.slice(path.lastIndexOf("/") + 1);
}
onTriggered: {
UM.MeshFileHandler.readLocalFile(modelData);
Printer.readLocalFile(modelData);
var meshName = backgroundItem.getMeshName(modelData.toString())
backgroundItem.hasMesh(decodeURIComponent(meshName))
}