aboutsummaryrefslogtreecommitdiff
path: root/scene/3d/spatial_stream_player.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2014-11-05 21:20:42 -0300
committerJuan Linietsky2014-11-05 21:20:42 -0300
commit0dbedd18fc62f700e92a4cf581e505d849bc47ad (patch)
tree8f2c85b4d9227e441fd35ab4873009faa656bcba /scene/3d/spatial_stream_player.cpp
parentd14baf6e41bcdbe4968e0513beccc09dfb160ecd (diff)
downloadgodot-0dbedd18fc62f700e92a4cf581e505d849bc47ad.tar.gz
godot-0dbedd18fc62f700e92a4cf581e505d849bc47ad.tar.zst
godot-0dbedd18fc62f700e92a4cf581e505d849bc47ad.zip
Diffstat (limited to 'scene/3d/spatial_stream_player.cpp')
-rw-r--r--scene/3d/spatial_stream_player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/spatial_stream_player.cpp b/scene/3d/spatial_stream_player.cpp
index 25448498c..51009662d 100644
--- a/scene/3d/spatial_stream_player.cpp
+++ b/scene/3d/spatial_stream_player.cpp
@@ -74,7 +74,7 @@ Ref<AudioStream> SpatialStreamPlayer::get_stream() const {
void SpatialStreamPlayer::play() {
- if (!is_inside_scene())
+ if (!is_inside_tree())
return;
if (stream.is_null())
return;
@@ -89,7 +89,7 @@ void SpatialStreamPlayer::play() {
void SpatialStreamPlayer::stop() {
- if (!is_inside_scene())
+ if (!is_inside_tree())
return;
if (stream.is_null())
return;