Fix AudioStreamPlayer2D/3D::is_playing right after a play()

This commit is contained in:
Marcelo Fernandez 2018-11-17 11:47:11 -03:00
parent 0afdc5c559
commit 016f7bd8f8
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);