Fix bug where auto geolocation offset didn't occur if placements were relative

This commit is contained in:
Dion Moult
2021-10-28 11:55:11 +11:00
parent 081ca81a7e
commit d772299871
4 changed files with 138 additions and 15 deletions
@@ -256,7 +256,6 @@ Scenario: Load project elements - load with the spatial decomposition collection
And the collection "IfcSpace/Space" is in the collection "IfcBuildingStorey/My Storey"
And "scene.BIMProjectProperties.is_loading" is "False"
Scenario: Load project elements - manual offset of object placements
Given an empty Blender session
And I press "bim.load_project(filepath='{cwd}/test/files/manual-geolocation.ifc', is_advanced=True)"
@@ -265,6 +264,11 @@ Scenario: Load project elements - manual offset of object placements
And I press "bim.load_project_elements"
Then the object "IfcPlate/1780 x 270 PRECAST WALL" is at "0,0,0"
Scenario: Load project elements - auto offset of object placements
Given an empty Blender session
When I press "bim.load_project(filepath='{cwd}/test/files/auto-geolocation.ifc')"
Then the object "IfcPlate/1780 x 270 PRECAST WALL" is at "0,0,0"
Scenario: Unload project
Given an empty Blender session
When I press "bim.load_project(filepath='{cwd}/test/files/basic.ifc', is_advanced=True)"