Skip to content

Commit

Permalink
TimelineEditor: Small fix to undoing CTRL+V
Browse files Browse the repository at this point in the history
  • Loading branch information
Jowan-Spooner committed Oct 27, 2024
1 parent 4f3fda8 commit 04eef89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ func _input(event:InputEvent) -> void:
if events_list:
TimelineUndoRedo.create_action("[D] Pasting "+str(len(events_list))+" event(s).")
TimelineUndoRedo.add_do_method(add_events_at_index.bind(events_list, paste_position))
TimelineUndoRedo.add_undo_method(delete_events_at_index.bind(paste_position+1, len(events_list)))
TimelineUndoRedo.add_undo_method(delete_events_at_index.bind(paste_position, len(events_list)))
TimelineUndoRedo.commit_action()
get_viewport().set_input_as_handled()

Expand Down

0 comments on commit 04eef89

Please sign in to comment.