mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
3MF no longer fails when there is no transformation matrix
This commit is contained in:
parent
2cda0283c7
commit
d3a6f63d1f
1 changed files with 27 additions and 25 deletions
|
@ -80,7 +80,7 @@ class ThreeMFReader(MeshReader):
|
|||
transformation = root.findall("./3mf:build/3mf:item[@objectid='{0}']".format(object.get("id")), self._namespaces)
|
||||
if transformation:
|
||||
transformation = transformation[0]
|
||||
|
||||
try:
|
||||
if transformation.get("transform"):
|
||||
splitted_transformation = transformation.get("transform").split()
|
||||
## Transformation is saved as:
|
||||
|
@ -107,6 +107,8 @@ class ThreeMFReader(MeshReader):
|
|||
temp_mat._data[2,3] = splitted_transformation[11]
|
||||
|
||||
node.setTransformation(temp_mat)
|
||||
except AttributeError:
|
||||
pass # Empty list was found. Getting transformation is not possible
|
||||
|
||||
result.addChild(node)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue