mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Fix IfcClash bug where spatial elements wouldn't get affected by user filters
This commit is contained in:
@@ -180,11 +180,11 @@ class IfcClasher:
|
||||
elements = selector.parse(data['ifc'], data['selector'])
|
||||
|
||||
if data['mode'] == 'e':
|
||||
for element in data['ifc'].by_type('IfcElement'):
|
||||
for element in data['ifc'].by_type('IfcElement') + data['ifc'].by_type('IfcSpatialStructureElement'):
|
||||
if element in elements:
|
||||
data['ifc'].remove(element)
|
||||
elif data['mode'] == 'i':
|
||||
for element in data['ifc'].by_type('IfcElement'):
|
||||
for element in data['ifc'].by_type('IfcElement') + data['ifc'].by_type('IfcSpatialStructureElement'):
|
||||
if element not in elements:
|
||||
data['ifc'].remove(element)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user