Fix simulation view not showing bars for g-code

This commit is contained in:
Jaime van Kessel 2019-08-30 11:43:59 +02:00
parent 3fa2fefdef
commit 9b45b56e61

View file

@ -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