From 5280501660e3ad6ded329f6263aa0df2f2e5bcf3 Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Mon, 15 Jan 2018 14:40:01 +0100 Subject: [PATCH] Fix for CURA-4789 `deleteAll()` within `CuraApplication.py` used to only delete all scene nodes but now also resets the print information, as deleting all scene nodes _should_ do that by default. Timer now resets to 0, and project name is reset. --- cura/CuraApplication.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 53b65e3d1b..428a26f956 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -647,10 +647,10 @@ class CuraApplication(QtApplication): if parsed_args["help"]: parser.print_help() sys.exit(0) - + def run(self): self.preRun() - + self.showSplashMessage(self._i18n_catalog.i18nc("@info:progress", "Setting up scene...")) self._setUpSingleInstanceServer() @@ -1060,6 +1060,9 @@ class CuraApplication(QtApplication): op.push() Selection.clear() + Logger.log("i", "Reseting print information") + self._print_information = PrintInformation.PrintInformation() + self.getCuraSceneController().setActiveBuildPlate(0) # Select first build plate ## Reset all translation on nodes with mesh data.