mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix: Layersliders work again.
This commit is contained in:
parent
cb361e9543
commit
1915100118
2 changed files with 5 additions and 3 deletions
|
@ -296,9 +296,6 @@ class SimulationView(CuraView):
|
|||
self._layer_view_type = layer_view_type
|
||||
self.currentLayerNumChanged.emit()
|
||||
|
||||
scene = Application.getInstance().getController().getScene()
|
||||
scene.sceneChanged.emit(scene.getRoot())
|
||||
|
||||
## Return the layer view type, integer as in SimulationView.qml and this class
|
||||
def getSimulationViewType(self) -> int:
|
||||
return self._layer_view_type
|
||||
|
@ -575,6 +572,8 @@ class SimulationView(CuraView):
|
|||
|
||||
def _onCurrentLayerNumChanged(self) -> None:
|
||||
self.calculateMaxPathsOnLayer(self._current_layer_num)
|
||||
scene = Application.getInstance().getController().getScene()
|
||||
scene.sceneChanged.emit(scene.getRoot())
|
||||
|
||||
def _startUpdateTopLayers(self) -> None:
|
||||
if not self._compatibility_mode:
|
||||
|
|
|
@ -149,6 +149,9 @@ class SimulationViewProxy(QObject):
|
|||
self.currentPathChanged.emit()
|
||||
self._layerActivityChanged()
|
||||
|
||||
scene = Application.getInstance().getController().getScene()
|
||||
scene.sceneChanged.emit(scene.getRoot())
|
||||
|
||||
def _onMaxLayersChanged(self):
|
||||
self.maxLayersChanged.emit()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue