mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add doc for calllater active machine in project loading
This commit is contained in:
parent
174bc7dbd7
commit
ca88e0df88
1 changed files with 6 additions and 0 deletions
|
@ -1082,6 +1082,12 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
CuraApplication.getInstance().getMachineManager().activeQualityChanged.emit()
|
CuraApplication.getInstance().getMachineManager().activeQualityChanged.emit()
|
||||||
|
|
||||||
# Actually change the active machine.
|
# Actually change the active machine.
|
||||||
|
#
|
||||||
|
# This is scheduled for later is because it depends on the Variant/Material/Qualitiy Managers to have the latest
|
||||||
|
# data, but those managers will only update upon a container/container metadata changed signal. Because this
|
||||||
|
# function is running on the main thread (Qt thread), although those "changed" signals have been emitted, but
|
||||||
|
# they won't take effect until this function is done.
|
||||||
|
# To solve this, we schedule _updateActiveMachine() for later so it will have the latest data.
|
||||||
CuraApplication.getInstance().callLater(self._updateActiveMachine, global_stack)
|
CuraApplication.getInstance().callLater(self._updateActiveMachine, global_stack)
|
||||||
|
|
||||||
# Load all the nodes / meshdata of the workspace
|
# Load all the nodes / meshdata of the workspace
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue