mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 23:49:04 +08:00
Fix opening empty ucp files
CURA-11703
This commit is contained in:
parent
29c3c2f098
commit
600f5cdaf6
@ -951,7 +951,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||||||
full_extents = node_box
|
full_extents = node_box
|
||||||
else:
|
else:
|
||||||
full_extents = full_extents + node_box
|
full_extents = full_extents + node_box
|
||||||
if full_extents.isValid():
|
if full_extents and full_extents.isValid():
|
||||||
for node in nodes:
|
for node in nodes:
|
||||||
pos = node.getPosition()
|
pos = node.getPosition()
|
||||||
node.setPosition(Vector(pos.x - full_extents.center.x, pos.y, pos.z - full_extents.center.z))
|
node.setPosition(Vector(pos.x - full_extents.center.x, pos.y, pos.z - full_extents.center.z))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user