Fix opening empty ucp files

CURA-11703
This commit is contained in:
c.lamboo 2024-03-29 16:23:38 +01:00
parent 29c3c2f098
commit 600f5cdaf6

View file

@ -951,7 +951,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
full_extents = node_box
else:
full_extents = full_extents + node_box
if full_extents.isValid():
if full_extents and full_extents.isValid():
for node in nodes:
pos = node.getPosition()
node.setPosition(Vector(pos.x - full_extents.center.x, pos.y, pos.z - full_extents.center.z))