summaryrefslogtreecommitdiffstats
path: root/scene/2d/audio_stream_player_2d.cpp
diff options
context:
space:
mode:
authorMarcelo Fernandez <marcelofg55@gmail.com>2018-11-17 11:47:11 -0300
committerMarcelo Fernandez <marcelofg55@gmail.com>2018-11-17 11:47:11 -0300
commit016f7bd8f8e9bebceab6ef1cfc9c1fdc9c786871 (patch)
treef503f2be3ab4182622795fb27633c5da8b08339e /scene/2d/audio_stream_player_2d.cpp
parent0afdc5c559520204987544d30560745dbf29a390 (diff)
downloadredot-engine-016f7bd8f8e9bebceab6ef1cfc9c1fdc9c786871.tar.gz
Fix AudioStreamPlayer2D/3D::is_playing right after a play()
Diffstat (limited to 'scene/2d/audio_stream_player_2d.cpp')
-rw-r--r--scene/2d/audio_stream_player_2d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/audio_stream_player_2d.cpp b/scene/2d/audio_stream_player_2d.cpp
index a092ef826f..c2af725919 100644
--- a/scene/2d/audio_stream_player_2d.cpp
+++ b/scene/2d/audio_stream_player_2d.cpp
@@ -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);