From 600f5cdaf649e75c748a7216b4b8eb3f5df0f1df Mon Sep 17 00:00:00 2001 From: "c.lamboo" Date: Fri, 29 Mar 2024 16:23:38 +0100 Subject: [PATCH] Fix opening empty ucp files CURA-11703 --- plugins/3MFReader/ThreeMFWorkspaceReader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/3MFReader/ThreeMFWorkspaceReader.py b/plugins/3MFReader/ThreeMFWorkspaceReader.py index 6c33f652d9..3769db4d14 100755 --- a/plugins/3MFReader/ThreeMFWorkspaceReader.py +++ b/plugins/3MFReader/ThreeMFWorkspaceReader.py @@ -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))