Merge pull request #82012 from BrinerLovo/fix_81929

Animation: Fix reset value when adding new Bezier track
This commit is contained in:
Rémi Verschelde 2024-07-09 00:03:11 +02:00
commit 8bf4a158e5
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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);
}