From 9b45b56e61454f257ca52778474a0352624be1c0 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 30 Aug 2019 11:43:59 +0200 Subject: [PATCH] Fix simulation view not showing bars for g-code --- plugins/SimulationView/SimulationView.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/SimulationView/SimulationView.py b/plugins/SimulationView/SimulationView.py index 72bf1274ea..b3f527acae 100644 --- a/plugins/SimulationView/SimulationView.py +++ b/plugins/SimulationView/SimulationView.py @@ -468,6 +468,9 @@ class SimulationView(CuraView): Application.getInstance().getPreferences().preferenceChanged.connect(self._onPreferencesChanged) self._controller.getScene().getRoot().childrenChanged.connect(self._onSceneChanged) + self.calculateMaxLayers() + self.calculateMaxPathsOnLayer(self._current_layer_num) + # FIX: on Max OS X, somehow QOpenGLContext.currentContext() can become None during View switching. # This can happen when you do the following steps: # 1. Start Cura