Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit 894a688

Browse files
committed
Added test scenario to reproduce IfcOpenShell#3169
Can be easily called with `pytest .\test\bim\test_feature.py -k "issue"` Commented some lines out to make sure it doesn't interrupt someone's test process. Need to uncomment `When I press "bim.create_drawing"` if you want to see if it freezes for you. You can also uncomment `And I save sample test files and open in blender` to see the freeze manually in Blender client.
1 parent c69ead4 commit 894a688

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/blenderbim/test/bim/feature/drawing.feature

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,19 @@ Scenario: Remove drawing - via object deletion
7373
And the object "IfcAnnotation/PLAN_VIEW" is selected
7474
When I press "bim.override_object_delete"
7575
Then the collection "IfcGroup/PLAN_VIEW" does not exist
76+
77+
Scenario: Reproducing freeze on generating drawing - Issue 3169
78+
Given an empty IFC project
79+
And I add a cube
80+
And the object "Cube" is selected
81+
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
82+
And I press "bim.assign_class"
83+
And I set "object.BIMObjectMaterialProperties.material_type" to "IfcMaterialLayerSetUsage"
84+
And I press "bim.assign_material"
85+
And I press "bim.load_drawings"
86+
And I press "bim.add_drawing"
87+
And the variable "drawing" is "IfcStore.get_file().by_type('IfcAnnotation')[0].id()"
88+
And I press "bim.activate_drawing(drawing={drawing})"
89+
# And I save sample test files and open in blender
90+
# When I press "bim.create_drawing"
91+
Then nothing happens

0 commit comments

Comments
 (0)