summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-01-08 11:59:07 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-01-08 11:59:07 +0100
commit0354dc4205f02be67aae1700ba610b807dc3e808 (patch)
tree981c191425a938e33821ed66c499690bc1120b35
parentf5e2529584881a92d28c0feea52db192ece2d94a (diff)
parent5ade1077ffb1938e1af40e1530884e67c253fad2 (diff)
downloadredot-engine-0354dc4205f02be67aae1700ba610b807dc3e808.tar.gz
Merge pull request #86867 from TokageItLab/reset-copy-options-for-more
Copy InterpolationType / LoopMode for all track & UseBlend option for audio when adding reset keys
-rw-r--r--editor/animation_track_editor.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp
index 4c897aedb5..475ed6dc3c 100644
--- a/editor/animation_track_editor.cpp
+++ b/editor/animation_track_editor.cpp
@@ -6134,9 +6134,12 @@ void AnimationTrackEditor::_edit_menu_pressed(int p_option) {
if (animation->track_get_type(sk.track) == Animation::TYPE_VALUE) {
undo_redo->add_do_method(reset.ptr(), "value_track_set_update_mode", dst_track, animation->value_track_get_update_mode(sk.track));
- undo_redo->add_do_method(reset.ptr(), "track_set_interpolation_type", dst_track, animation->track_get_interpolation_type(sk.track));
- undo_redo->add_do_method(reset.ptr(), "track_set_interpolation_loop_wrap", dst_track, animation->track_get_interpolation_loop_wrap(sk.track));
}
+ if (animation->track_get_type(sk.track) == Animation::TYPE_AUDIO) {
+ undo_redo->add_do_method(reset.ptr(), "audio_track_set_use_blend", dst_track, animation->audio_track_is_use_blend(sk.track));
+ }
+ undo_redo->add_do_method(reset.ptr(), "track_set_interpolation_type", dst_track, animation->track_get_interpolation_type(sk.track));
+ undo_redo->add_do_method(reset.ptr(), "track_set_interpolation_loop_wrap", dst_track, animation->track_get_interpolation_loop_wrap(sk.track));
undo_redo->add_do_method(reset.ptr(), "track_insert_key", dst_track, 0, animation->track_get_key_value(sk.track, sk.key), animation->track_get_key_transition(sk.track, sk.key));
undo_redo->add_undo_method(reset.ptr(), "track_remove_key_at_time", dst_track, 0);