소스 검색

Merge pull request #87732 from aaronfranke/fix-audio-player-3d-autoplay-notif

Fix AudioStreamPlayer3D autoplay and internal notifications
Rémi Verschelde 1 년 전
부모
커밋
07df0a7ae5
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scene/3d/audio_stream_player_3d.cpp

+ 1 - 0
scene/3d/audio_stream_player_3d.cpp

@@ -240,6 +240,7 @@ float AudioStreamPlayer3D::_get_attenuation_db(float p_distance) const {
 }
 
 void AudioStreamPlayer3D::_notification(int p_what) {
+	internal->notification(p_what);
 	switch (p_what) {
 		case NOTIFICATION_ENTER_TREE: {
 			velocity_tracker->reset(get_global_transform().origin);