Fix AudioStreamPlayer2D/3D::is_playing right after a play()
This commit is contained in:
parent
0afdc5c559
commit
016f7bd8f8
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue