File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
bonsai/bim/module/drawing Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -313,6 +313,6 @@ Scenario: Create sheet - with a drawing added to it
313313Scenario : 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."
You can’t perform that action at this time.
0 commit comments