mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Force sim-view to update after view-type change.
This commit is contained in:
parent
c38ce5370d
commit
cb361e9543
1 changed files with 6 additions and 2 deletions
|
@ -292,8 +292,12 @@ class SimulationView(CuraView):
|
|||
#
|
||||
# \param layer_view_type integer as in SimulationView.qml and this class
|
||||
def setSimulationViewType(self, layer_view_type: int) -> None:
|
||||
self._layer_view_type = layer_view_type
|
||||
self.currentLayerNumChanged.emit()
|
||||
if layer_view_type != self._layer_view_type:
|
||||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue