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:
authorKostas Karmas <konskarm@gmail.com>2020-10-21 16:31:34 +0300
committerKostas Karmas <konskarm@gmail.com>2020-10-21 16:31:34 +0300
commit12aa1144835b47f7d390682a1ffc43761086642a (patch)
tree5ef0e2df655e4ee790ce8959ca0b1b61ca9b5a5d /plugins/3MFReader
parent01b432a3c3cf5e7e39f6aacc87898cf51b3b76ca (diff)
Surround the addition the convexHull with try-except when loading a 3mf
The buildplate meshes can be in .3mf format. When Cura is loading a printer, it may try to load its mesh from a 3mf file. At the moment cura is starting up there is no build volume yet, so adding a convexHull to the printer's 3mf buildplate mesh is not possible. By surrounding the addition of the convexHull with a try-except, loading of 3mf buildplate meshes on startup doesn't cause issues. Fixes https://github.com/Ultimaker/Cura/issues/8585
Diffstat (limited to 'plugins/3MFReader')
-rwxr-xr-xplugins/3MFReader/ThreeMFReader.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/3MFReader/ThreeMFReader.py b/plugins/3MFReader/ThreeMFReader.py
index c9e3689a0d..2e3f5630c1 100755
--- a/plugins/3MFReader/ThreeMFReader.py
+++ b/plugins/3MFReader/ThreeMFReader.py
@@ -109,7 +109,10 @@ class ThreeMFReader(MeshReader):
um_node = CuraSceneNode() # This adds a SettingOverrideDecorator
um_node.addDecorator(BuildPlateDecorator(active_build_plate))
- um_node.addDecorator(ConvexHullDecorator())
+ try:
+ um_node.addDecorator(ConvexHullDecorator())
+ except:
+ pass
um_node.setName(node_name)
um_node.setId(node_id)
transformation = self._createMatrixFromTransformationString(savitar_node.getTransformation())