Reload object should now function again

Fixes CURA-147 (A proper solution will need to be found in the future)
This commit is contained in:
Jaime van Kessel 2015-09-15 16:34:05 +02:00
parent daca1f26c2
commit ad0a36cfef

View file

@ -555,7 +555,11 @@ class CuraApplication(QtApplication):
self.recentFilesChanged.emit()
def _reloadMeshFinished(self, job):
job._node = job.getResult()
# TODO; This needs to be fixed properly. We now make the assumption that we only load a single mesh!
job._node.setMeshData(job.getResult().getMeshData())
#job.getResult().setParent(self.getController().getScene().getRoot())
#job._node.setParent(self.getController().getScene().getRoot())
#job._node.meshDataChanged.emit(job._node)
def _openFile(self, file):
job = ReadMeshJob(os.path.abspath(file))