mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
Fix #2930. Do not require entity applicability in IfcTester.
This commit is contained in:
@@ -201,7 +201,13 @@ class Specification:
|
||||
return
|
||||
|
||||
elements = []
|
||||
for facet in self.applicability:
|
||||
for i, facet in enumerate(self.applicability):
|
||||
# Usually, we rely on an entity applicability to give us our first
|
||||
# shortlist of elements, as it's the most efficient way to filter
|
||||
# elements. If this does not exist, then we have no choice but to
|
||||
# check everything.
|
||||
if i == 0 and not isinstance(facet, Entity):
|
||||
elements = list(ifc_file)
|
||||
elements = facet.filter(ifc_file, elements)
|
||||
|
||||
for element in elements:
|
||||
|
||||
Reference in New Issue
Block a user