mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix bug where copying a type also copied its type relations which is invalid.
This commit is contained in:
@@ -31,6 +31,8 @@ class Usecase:
|
||||
continue
|
||||
elif inverse.is_a("IfcRelContainedInSpatialStructure") and inverse.RelatingStructure == from_element:
|
||||
continue
|
||||
elif inverse.is_a("IfcRelDefinesByType") and inverse.RelatingType == from_element:
|
||||
continue
|
||||
elif inverse.is_a("IfcRelFillsElement"):
|
||||
continue
|
||||
elif inverse.is_a("IfcRelAssociatesMaterial") and "Usage" in inverse.RelatingMaterial.is_a():
|
||||
|
||||
Reference in New Issue
Block a user