From ffbe0d1b9649351651de064a1a126effe8f46a33 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Tue, 5 Apr 2022 16:02:44 +0200 Subject: [PATCH] Arch: workaround race condition in building part creation --- src/Mod/Arch/ArchBuildingPart.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchBuildingPart.py b/src/Mod/Arch/ArchBuildingPart.py index ebb81d8ab5..4de74ba342 100644 --- a/src/Mod/Arch/ArchBuildingPart.py +++ b/src/Mod/Arch/ArchBuildingPart.py @@ -661,7 +661,8 @@ class ViewProviderBuildingPart: self.lco = coin.SoCoordinate3() self.sep.addChild(self.lco) lin = coin.SoType.fromName("SoBrepEdgeSet").createInstance() - lin.coordIndex.setValues([0,1,-1,2,3,-1,4,5,-1]) + if lin: + lin.coordIndex.setValues([0,1,-1,2,3,-1,4,5,-1]) self.sep.addChild(lin) self.bbox = coin.SoSwitch() self.bbox.whichChild = -1