Fix #140829: Crash after undoing "Set as Background" in video tracker

Operators that link data-blocks handled by undo must have the "UNDO"
flag enabled.
This commit is contained in:
Campbell Barton
2025-06-25 16:27:55 +10:00
parent f3d58ebb5b
commit a2a1e4a159

View File

@@ -410,7 +410,7 @@ class CLIP_OT_set_viewport_background(Operator):
bl_idname = "clip.set_viewport_background"
bl_label = "Set as Background"
bl_options = {'REGISTER'}
bl_options = {'UNDO', 'REGISTER'}
@classmethod
def poll(cls, context):