Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2020-08-10 12:26:25 +0300
committerGhostkeeper <rubend@tutanota.com>2020-08-10 12:26:25 +0300
commit1f09ea58cc33f689a12c67d1b131c41cfae47714 (patch)
treeebcad9d2014c2f48a048b314de1939e83f6ef70e /plugins/3MFReader
parentcc99c481af823cce1b7967bc09b466f9557f745a (diff)
parente7d95f6d909e42a7a35079d999a6538f24d86b30 (diff)
Merge branch '4.7'
Diffstat (limited to 'plugins/3MFReader')
-rwxr-xr-xplugins/3MFReader/ThreeMFWorkspaceReader.py31
-rw-r--r--plugins/3MFReader/plugin.json2
2 files changed, 17 insertions, 16 deletions
diff --git a/plugins/3MFReader/ThreeMFWorkspaceReader.py b/plugins/3MFReader/ThreeMFWorkspaceReader.py
index 9285cd3731..89b4209b56 100755
--- a/plugins/3MFReader/ThreeMFWorkspaceReader.py
+++ b/plugins/3MFReader/ThreeMFWorkspaceReader.py
@@ -762,21 +762,22 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
Job.yieldThread()
QCoreApplication.processEvents() # Ensure that the GUI does not freeze.
- # Handle quality changes if any
- self._processQualityChanges(global_stack)
-
- # Prepare the machine
- self._applyChangesToMachine(global_stack, extruder_stack_dict)
-
- Logger.log("d", "Workspace loading is notifying rest of the code of changes...")
- # 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.
- self._updateActiveMachine(global_stack)
+ if global_stack:
+ # Handle quality changes if any
+ self._processQualityChanges(global_stack)
+
+ # Prepare the machine
+ self._applyChangesToMachine(global_stack, extruder_stack_dict)
+
+ Logger.log("d", "Workspace loading is notifying rest of the code of changes...")
+ # 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.
+ self._updateActiveMachine(global_stack)
# Load all the nodes / mesh data of the workspace
nodes = self._3mf_mesh_reader.read(file_name)
diff --git a/plugins/3MFReader/plugin.json b/plugins/3MFReader/plugin.json
index 7e434d03b2..ec0b7bf079 100644
--- a/plugins/3MFReader/plugin.json
+++ b/plugins/3MFReader/plugin.json
@@ -3,6 +3,6 @@
"author": "Ultimaker B.V.",
"version": "1.0.1",
"description": "Provides support for reading 3MF files.",
- "api": "7.2.0",
+ "api": "7.3.0",
"i18n-catalog": "cura"
}