Skip to content

Commit 3b4a530

Browse files
committed
Fix several broken tests due to the usage of the deprecated context overriding mode
1 parent e99d328 commit 3b4a530

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

io_xplane2blender/tests/test_creation_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,9 +833,9 @@ def set_animation_data(
833833
bpy.ops.bone.add_xplane_dataref_keyframe(index=dataref_index)
834834
else:
835835
bpy.context.view_layer.objects.active = blender_struct
836-
bpy.ops.object.add_xplane_dataref_keyframe(
837-
{"object": blender_struct}, index=dataref_index
838-
)
836+
837+
with bpy.context.temp_override(object=blender_struct):
838+
bpy.ops.object.add_xplane_dataref_keyframe(index=dataref_index)
839839

840840

841841
def set_collection(

0 commit comments

Comments
 (0)