Skip to content

Commit ddbb898

Browse files
committed
Merge pull request godotengine#112563 from fryingpanjoe/fpj/fix-reimport-custom-track-use-blend
Fix custom audio track blend flag on reimport
2 parents d561163 + c765e6c commit ddbb898

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scene/resources/animation.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3951,6 +3951,9 @@ void Animation::copy_track(int p_track, Ref<Animation> p_to_animation) {
39513951
if (track_get_type(p_track) == TYPE_VALUE) {
39523952
p_to_animation->value_track_set_update_mode(dst_track, value_track_get_update_mode(p_track));
39533953
}
3954+
if (track_get_type(p_track) == TYPE_AUDIO) {
3955+
p_to_animation->audio_track_set_use_blend(dst_track, audio_track_is_use_blend(p_track));
3956+
}
39543957

39553958
for (int i = 0; i < track_get_key_count(p_track); i++) {
39563959
p_to_animation->track_insert_key(dst_track, track_get_key_time(p_track, i), track_get_key_value(p_track, i), track_get_key_transition(p_track, i));

0 commit comments

Comments
 (0)