mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:19:15 +08:00
Fix simulation view not showing bars for g-code
This commit is contained in:
parent
3fa2fefdef
commit
9b45b56e61
@ -468,6 +468,9 @@ class SimulationView(CuraView):
|
|||||||
Application.getInstance().getPreferences().preferenceChanged.connect(self._onPreferencesChanged)
|
Application.getInstance().getPreferences().preferenceChanged.connect(self._onPreferencesChanged)
|
||||||
self._controller.getScene().getRoot().childrenChanged.connect(self._onSceneChanged)
|
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.
|
# FIX: on Max OS X, somehow QOpenGLContext.currentContext() can become None during View switching.
|
||||||
# This can happen when you do the following steps:
|
# This can happen when you do the following steps:
|
||||||
# 1. Start Cura
|
# 1. Start Cura
|
||||||
|
Loading…
x
Reference in New Issue
Block a user