mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix opening empty ucp files
CURA-11703
This commit is contained in:
parent
29c3c2f098
commit
600f5cdaf6
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue