From f1d9de068cbafda257fb6312ee51994398a8671a Mon Sep 17 00:00:00 2001 From: Hilton Medeiros Date: Fri, 10 Oct 2014 11:00:17 -0300 Subject: Remove camera check for 2D audio listener. --- scene/main/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene') diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index bd39fafc8b..7e953e44c7 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -558,7 +558,7 @@ void Viewport::_update_listener() { void Viewport::_update_listener_2d() { - if (is_inside_scene() && audio_listener && camera && (!get_parent() || (get_parent()->cast_to() && get_parent()->cast_to()->is_visible()))) + if (is_inside_scene() && audio_listener && (!get_parent() || (get_parent()->cast_to() && get_parent()->cast_to()->is_visible()))) SpatialSound2DServer::get_singleton()->listener_set_space(listener_2d,find_world_2d()->get_sound_space()); else SpatialSound2DServer::get_singleton()->listener_set_space(listener_2d,RID()); -- cgit v1.2.3