From f438c48c231c5c7764b99e769062bcdb4733030b Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 19 Oct 2021 19:14:41 +1100 Subject: [PATCH] Fix bug where copying objects may sometimes result in incorrect location in the Blender collection tree --- src/blenderbim/test/bim/feature/root.feature | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/blenderbim/test/bim/feature/root.feature b/src/blenderbim/test/bim/feature/root.feature index aed40d3e2a..407d60d4f8 100644 --- a/src/blenderbim/test/bim/feature/root.feature +++ b/src/blenderbim/test/bim/feature/root.feature @@ -13,3 +13,13 @@ Scenario: Unlink object 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 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"