Merge pull request #91237 from TokageItLab/reset-intrp
Make adding track process to set interpolation type on creating RESET
This commit is contained in:
commit
6f14e19aa1
1 changed files with 1 additions and 0 deletions
|
@ -4485,6 +4485,7 @@ AnimationTrackEditor::TrackIndices AnimationTrackEditor::_confirm_insert(InsertD
|
||||||
if (p_id.type == Animation::TYPE_VALUE) {
|
if (p_id.type == Animation::TYPE_VALUE) {
|
||||||
undo_redo->add_do_method(reset_anim, "value_track_set_update_mode", p_next_tracks.reset, update_mode);
|
undo_redo->add_do_method(reset_anim, "value_track_set_update_mode", p_next_tracks.reset, update_mode);
|
||||||
}
|
}
|
||||||
|
undo_redo->add_do_method(reset_anim, "track_set_interpolation_type", p_next_tracks.reset, interp_type);
|
||||||
undo_redo->add_do_method(reset_anim, "track_insert_key", p_next_tracks.reset, 0.0f, value);
|
undo_redo->add_do_method(reset_anim, "track_insert_key", p_next_tracks.reset, 0.0f, value);
|
||||||
undo_redo->add_undo_method(reset_anim, "remove_track", reset_anim->get_track_count());
|
undo_redo->add_undo_method(reset_anim, "remove_track", reset_anim->get_track_count());
|
||||||
p_next_tracks.reset++;
|
p_next_tracks.reset++;
|
||||||
|
|
Loading…
Reference in a new issue