Fix bug where copying objects may sometimes result in incorrect location in the Blender collection tree

This commit is contained in:
Dion Moult
2021-10-19 19:14:41 +11:00
parent 6478601f79
commit f438c48c23
@@ -13,3 +13,13 @@ Scenario: Unlink object
Then the object "Cube" is not an IFC element Then the object "Cube" is not an IFC element
And the material "Material" is not an IFC material And the material "Material" is not an IFC material
And the material "Material" is not an IFC style And the material "Material" is not an IFC style
Scenario: Copy class
Given an empty IFC project
And I add a cube
And the object "Cube" is selected
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
And I press "bim.assign_class"
When I press "bim.copy_class(obj='IfcWall/Cube')"
Then the object "IfcWall/Cube" is an "IfcWall"