Fix terrible bug #1819 where duplicating mapped elements didn't actually copy the geometry mapping.

This commit is contained in:
Dion Moult
2021-10-22 11:16:03 +11:00
parent 9ae2c6352a
commit a8c99cebaf
10 changed files with 139 additions and 10 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ class TestCopyClass:
ifc.link("element", "obj").should_be_called()
root.get_element_type("element").should_be_called().will_return("type")
root.does_type_have_representations("type").should_be_called().will_return(True)
ifc.run("type.assign_type", related_object="element", relating_type="type").should_be_called()
ifc.run("type.map_type_representations", related_object="element", relating_type="type").should_be_called()
collector.assign("obj").should_be_called()
root.is_opening_element("element").should_be_called().will_return(False)
subject.copy_class(ifc, collector, root, obj="obj")
@@ -65,7 +65,7 @@ class TestCopyClass:
ifc.link("element", "obj").should_be_called()
root.get_element_type("element").should_be_called().will_return("type")
root.does_type_have_representations("type").should_be_called().will_return(True)
ifc.run("type.assign_type", related_object="element", relating_type="type").should_be_called()
ifc.run("type.map_type_representations", related_object="element", relating_type="type").should_be_called()
collector.assign("obj").should_be_called()
root.is_opening_element("element").should_be_called().will_return(True)
root.add_dynamic_opening_voids("element", "obj").should_be_called()