diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-28 15:58:24 +0100 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-28 15:58:24 +0100 |
| commit | e5752fdfd33a35be5a96fe754c5553fee88cbe76 (patch) | |
| tree | 51b3a07b7a44e1ff21e3b7e50c6fc1e450783cf8 /scene/resources/animation.h | |
| parent | 6a252c19cc7ddb6600415ff9f332fe8c97e3f0ef (diff) | |
| parent | 75330887d72ea94562226442f854092327f68fa0 (diff) | |
Merge pull request #72233 from TokageItLab/audio-blending
Implement blending audio feature to AnimationTree
Diffstat (limited to 'scene/resources/animation.h')
| -rw-r--r-- | scene/resources/animation.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/animation.h b/scene/resources/animation.h index 00a0761e0a..2c2ddb7095 100644 --- a/scene/resources/animation.h +++ b/scene/resources/animation.h @@ -213,6 +213,7 @@ private: struct AudioTrack : public Track { Vector<TKey<AudioKey>> values; + bool use_blend = true; AudioTrack() { type = TYPE_AUDIO; @@ -447,6 +448,8 @@ public: Ref<Resource> audio_track_get_key_stream(int p_track, int p_key) const; real_t audio_track_get_key_start_offset(int p_track, int p_key) const; real_t audio_track_get_key_end_offset(int p_track, int p_key) const; + void audio_track_set_use_blend(int p_track, bool p_enable); + bool audio_track_is_use_blend(int p_track) const; int animation_track_insert_key(int p_track, double p_time, const StringName &p_animation); void animation_track_set_key_animation(int p_track, int p_key, const StringName &p_animation); |