Merge pull request #23767 from marcelofg55/fix_is_playing

Fix AudioStreamPlayer2D/3D::is_playing right after a play()
This commit is contained in:
Rémi Verschelde 2018-11-17 17:19:21 +01:00 committed by GitHub
commit 3c62a584eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -323,6 +323,7 @@ void AudioStreamPlayer2D::play(float p_from_pos) {
}
if (stream_playback.is_valid()) {
active = true;
setplay = p_from_pos;
output_ready = false;
set_physics_process_internal(true);

View file

@ -641,6 +641,7 @@ float AudioStreamPlayer3D::get_pitch_scale() const {
void AudioStreamPlayer3D::play(float p_from_pos) {
if (stream_playback.is_valid()) {
active = true;
setplay = p_from_pos;
output_ready = false;
set_physics_process_internal(true);