Arch: workaround race condition in building part creation

This commit is contained in:
Yorik van Havre
2022-04-05 16:02:44 +02:00
parent 0e8b87bf51
commit ffbe0d1b96

View File

@@ -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