Draft+Arch: Fix crash related to SoBrepEdgeSet

This commit is contained in:
Roy-043
2022-09-28 17:31:12 +02:00
parent 849305b88a
commit 8a91607778
5 changed files with 8 additions and 1 deletions

View File

@@ -658,6 +658,7 @@ class ViewProviderBuildingPart:
self.sep.addChild(self.dst)
self.lco = coin.SoCoordinate3()
self.sep.addChild(self.lco)
import PartGui # Required for "SoBrepEdgeSet" (because a BuildingPart is not a Part::FeaturePython object).
lin = coin.SoType.fromName("SoBrepEdgeSet").createInstance()
if lin:
lin.coordIndex.setValues([0,1,-1,2,3,-1,4,5,-1])