Port locations now sync relative to their parent even when not actively displayed in the viewport

This commit is contained in:
Dion Moult
2022-05-05 18:00:42 +10:00
parent 3213af2f48
commit 53c050c6ed
13 changed files with 93 additions and 27 deletions
@@ -151,6 +151,8 @@ class TestCopyClass(test.bootstrap.IFC4):
assert not new.Types
def test_copying_distribution_ports(self):
ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcProject")
ifcopenshell.api.run("unit.assign_unit", self.file)
element = ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcChiller")
port = ifcopenshell.api.run("system.add_port", self.file)
ifcopenshell.api.run("system.assign_port", self.file, element=element, port=port)