Skip to content

Commit c30d24c

Browse files
committed
Fix regression where changing logic to occur in filesystem selector caused headless test to fail.
See d4388ec
1 parent 2edd1a5 commit c30d24c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/bonsai/bonsai/bim/module/drawing/operator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3886,8 +3886,7 @@ def _execute(self, context):
38863886
image_filepath = Path(tool.Ifc.get_uri(self.filepath, use_relative_path=self.use_relative_path))
38873887
ifc_file = tool.Ifc.get()
38883888

3889-
params = {"check_existing": False}
3890-
image = load_image(abs_path.name, str(abs_path.parent), **params)
3889+
image = load_image(abs_path.name, str(abs_path.parent), check_existing=False)
38913890

38923891
mesh = bpy.data.meshes.new(image_filepath.stem)
38933892
obj = bpy.data.objects.new(image_filepath.stem, mesh)

src/bonsai/test/bim/feature/drawing.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,6 @@ Scenario: Create sheet - with a drawing added to it
313313
Scenario: Add reference image
314314
Given an empty IFC project
315315
And I save IFC project
316-
When I press "bim.add_reference_image(filepath='{cwd}/test/files/image.jpg')"
316+
When I press "bim.add_reference_image(filepath='{cwd}/test/files/image.jpg', x_length=1, y_length=0.565)"
317317
Then the object "IfcAnnotation/image" exists
318318
And the object "IfcAnnotation/image" dimensions are "1.0,0.565,0."

0 commit comments

Comments
 (0)