mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix: The Print simulation view was broken because of constant refresheing scene
CURA-5142
This commit is contained in:
parent
749846e09c
commit
d859f71d6e
1 changed files with 5 additions and 5 deletions
|
@ -74,7 +74,7 @@ class SimulationView(View):
|
|||
|
||||
self._global_container_stack = None
|
||||
self._proxy = SimulationViewProxy()
|
||||
self._controller.getScene().sceneChanged.connect(self._onSceneChanged)
|
||||
self._controller.getScene().getRoot().childrenChanged.connect(self._onSceneChanged)
|
||||
|
||||
self._resetSettings()
|
||||
self._legend_items = None
|
||||
|
@ -160,10 +160,10 @@ class SimulationView(View):
|
|||
def _onSceneChanged(self, node):
|
||||
if node.getMeshData() is None:
|
||||
self.resetLayerData()
|
||||
else:
|
||||
self.setActivity(False)
|
||||
self.calculateMaxLayers()
|
||||
self.calculateMaxPathsOnLayer(self._current_layer_num)
|
||||
|
||||
self.setActivity(False)
|
||||
self.calculateMaxLayers()
|
||||
self.calculateMaxPathsOnLayer(self._current_layer_num)
|
||||
|
||||
def isBusy(self):
|
||||
return self._busy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue