Skip to content

Commit

Permalink
Merge pull request #82012 from BrinerLovo/fix_81929
Browse files Browse the repository at this point in the history
Animation: Fix reset value when adding new Bezier track
  • Loading branch information
akien-mga committed Jul 8, 2024
2 parents 8ed9bfd + bf01119 commit 8bf4a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/animation_track_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4429,7 +4429,7 @@ AnimationTrackEditor::TrackIndices AnimationTrackEditor::_confirm_insert(InsertD
for (int i = 0; i < subindices.size(); i++) {
InsertData id = p_id;
id.type = Animation::TYPE_BEZIER;
id.value = p_id.value.get(subindices[i].substr(1, subindices[i].length()));
id.value = subindices[i].is_empty() ? p_id.value : p_id.value.get(subindices[i].substr(1, subindices[i].length()));
id.path = String(p_id.path) + subindices[i];
p_next_tracks = _confirm_insert(id, p_next_tracks, p_reset_wanted, p_reset_anim, false);
}
Expand Down

0 comments on commit 8bf4a15

Please sign in to comment.