fix is_native_swept_disk_solid logick (#1469)

* Update import_ifc.py

Ensure that at least a raw representation exists before checking for type.

* Update import_ifc.py
This commit is contained in:
s-leger
2021-05-17 02:02:41 +02:00
committed by GitHub
parent 5b02d3214d
commit 27750e0caf
+3 -3
View File
@@ -443,9 +443,9 @@ class IfcImporter:
def is_native_swept_disk_solid(self, representations):
for representation in representations:
if len(representation["raw"].Items) > 1 or not representation["raw"].Items[0].is_a("IfcSweptDiskSolid"):
return False
return True
if len(representation["raw"].Items) == 1 and representation["raw"].Items[0].is_a("IfcSweptDiskSolid"):
return True
return False
def is_native_faceted_brep(self, representations):
for representation in representations: