mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 04:08:04 +00:00
Fix #2508
This commit is contained in:
@@ -402,7 +402,7 @@ class IfcImporter:
|
|||||||
items = representation["raw"].Items or [] # Be forgiving of invalid IFCs because Revit :(
|
items = representation["raw"].Items or [] # Be forgiving of invalid IFCs because Revit :(
|
||||||
if len(items) == 1 and items[0].is_a("IfcSweptDiskSolid"):
|
if len(items) == 1 and items[0].is_a("IfcSweptDiskSolid"):
|
||||||
return True
|
return True
|
||||||
elif (
|
elif len(items) and ( # See #2508 why we accommodate for invalid IFCs here
|
||||||
items[0].is_a("IfcSweptDiskSolid")
|
items[0].is_a("IfcSweptDiskSolid")
|
||||||
and len({i.is_a() for i in items}) == 1
|
and len({i.is_a() for i in items}) == 1
|
||||||
and len({i.Radius for i in items}) == 1
|
and len({i.Radius for i in items}) == 1
|
||||||
|
|||||||
Reference in New Issue
Block a user