mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +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'])
|
elements = selector.parse(data['ifc'], data['selector'])
|
||||||
|
|
||||||
if data['mode'] == 'e':
|
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:
|
if element in elements:
|
||||||
data['ifc'].remove(element)
|
data['ifc'].remove(element)
|
||||||
elif data['mode'] == 'i':
|
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:
|
if element not in elements:
|
||||||
data['ifc'].remove(element)
|
data['ifc'].remove(element)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user