Skip to content

Commit

Permalink
Fix opening empty ucp files
Browse files Browse the repository at this point in the history
CURA-11703
  • Loading branch information
casperlamboo committed Mar 29, 2024
1 parent 29c3c2f commit 600f5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/3MFReader/ThreeMFWorkspaceReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ def read(self, file_name):
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))
Expand Down

0 comments on commit 600f5cd

Please sign in to comment.