From ad0a36cfef47ea44c9437f1126d3a95c38416847 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 15 Sep 2015 16:34:05 +0200 Subject: [PATCH] Reload object should now function again Fixes CURA-147 (A proper solution will need to be found in the future) --- cura/CuraApplication.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 452a535cd8..a4f274c719 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -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))