diff options
author | Jaime van Kessel <nallath@gmail.com> | 2019-08-30 12:43:59 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2019-08-30 12:43:59 +0300 |
commit | 9b45b56e61454f257ca52778474a0352624be1c0 (patch) | |
tree | 6dfba7ff4ad0d93533cc5aab3c06c55de5d677af /plugins/SimulationView | |
parent | 3fa2fefdefaf7068307865d468658a4e79ab0e70 (diff) |
Fix simulation view not showing bars for g-code
Diffstat (limited to 'plugins/SimulationView')
-rw-r--r-- | plugins/SimulationView/SimulationView.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |