mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 19:53:17 +08:00
Switch to the preview stage before to switch to simulation view
... since now the list of views are in a different stage. Contributes to CURA-5979.
This commit is contained in:
parent
92d0717096
commit
dad2031e4b
@ -1663,7 +1663,9 @@ class CuraApplication(QtApplication):
|
||||
is_non_sliceable = "." + file_extension in self._non_sliceable_extensions
|
||||
|
||||
if is_non_sliceable:
|
||||
self.callLater(lambda: self.getController().setActiveView("SimulationView"))
|
||||
# Need to switch first to the preview stage and then to layer view
|
||||
self.callLater(lambda: (self.getController().setActiveStage("PreviewStage"),
|
||||
self.getController().setActiveView("SimulationView")))
|
||||
|
||||
block_slicing_decorator = BlockSlicingDecorator()
|
||||
node.addDecorator(block_slicing_decorator)
|
||||
|
Loading…
x
Reference in New Issue
Block a user