From bbf203bc32aae88dfc9f527db44856709572e2f1 Mon Sep 17 00:00:00 2001 From: Ninni Pipping Date: Thu, 26 Jan 2023 13:17:26 +0100 Subject: Hide clip_children for non-drawn CanvasItems --- scene/2d/audio_stream_player_2d.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'scene/2d/audio_stream_player_2d.cpp') diff --git a/scene/2d/audio_stream_player_2d.cpp b/scene/2d/audio_stream_player_2d.cpp index 7b681eac7a..3981cd893c 100644 --- a/scene/2d/audio_stream_player_2d.cpp +++ b/scene/2d/audio_stream_player_2d.cpp @@ -479,6 +479,7 @@ void AudioStreamPlayer2D::_bind_methods() { AudioStreamPlayer2D::AudioStreamPlayer2D() { AudioServer::get_singleton()->connect("bus_layout_changed", callable_mp(this, &AudioStreamPlayer2D::_bus_layout_changed)); cached_global_panning_strength = GLOBAL_GET("audio/general/2d_panning_strength"); + set_hide_clip_children(true); } AudioStreamPlayer2D::~AudioStreamPlayer2D() { -- cgit v1.2.3