You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-03 16:55:53 +00:00
Fix custom audio track blend flag on reimport
This commit is contained in:
@@ -3951,6 +3951,9 @@ void Animation::copy_track(int p_track, Ref<Animation> p_to_animation) {
|
||||
if (track_get_type(p_track) == TYPE_VALUE) {
|
||||
p_to_animation->value_track_set_update_mode(dst_track, value_track_get_update_mode(p_track));
|
||||
}
|
||||
if (track_get_type(p_track) == TYPE_AUDIO) {
|
||||
p_to_animation->audio_track_set_use_blend(dst_track, audio_track_is_use_blend(p_track));
|
||||
}
|
||||
|
||||
for (int i = 0; i < track_get_key_count(p_track); i++) {
|
||||
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));
|
||||
|
||||
Reference in New Issue
Block a user