Spatial containers are now shown sorted by Z index order for convenience.

This commit is contained in:
Dion Moult
2021-10-15 17:07:23 +11:00
parent bb090bd9a0
commit 776842a064
5 changed files with 43 additions and 4 deletions
@@ -45,7 +45,9 @@ Scenario: Override delete - with active IFC data
Scenario: Override duplicate move - without active IFC data
Given an empty Blender session
And I add a cube
And I add an empty
And the object "Cube" is selected
And additionally the object "Empty" is selected
When I press "object.duplicate_move"
Then the object "Cube" exists
And the object "Cube.001" exists
@@ -57,8 +59,11 @@ Scenario: Override duplicate move - with active IFC data
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
And I press "bim.assign_class"
And the object "IfcWall/Cube" is selected
And additionally the object "IfcBuildingStorey/My Storey" is selected
When I press "object.duplicate_move"
Then the object "IfcWall/Cube" exists
And the object "IfcWall/Cube" is an "IfcWall"
And the object "IfcWall/Cube.001" exists
And the object "IfcWall/Cube.001" is an "IfcWall"
And the object "IfcBuildingStorey/My Storey.001" exists
And the object "IfcBuildingStorey/My Storey.001" is an "IfcBuildingStorey"
+6
View File
@@ -72,6 +72,12 @@ def i_add_a_cube():
bpy.ops.mesh.primitive_cube_add()
@given("I add an empty")
@when("I add an empty")
def i_add_an_empty():
bpy.ops.object.empty_add()
@given("I add a material")
def i_add_a_material():
bpy.context.active_object.active_material = bpy.data.materials.new("Material")