Remove unnecessary setGlobalContainerStack() in project loading

CURA-5073
This commit is contained in:
Lipu Fei 2018-03-09 14:37:41 +01:00
parent 48dae7b6c7
commit 8c7e413038

View file

@ -709,7 +709,6 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
# function is running on the main thread (Qt thread), although those "changed" signals have been emitted, but # 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. # 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. # To solve this, we schedule _updateActiveMachine() for later so it will have the latest data.
Application.getInstance().setGlobalContainerStack(global_stack)
self._updateActiveMachine(global_stack) self._updateActiveMachine(global_stack)
# Load all the nodes / meshdata of the workspace # Load all the nodes / meshdata of the workspace