mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
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
This commit is contained in:
parent
01b432a3c3
commit
12aa114483
1 changed files with 4 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue