ソースを参照

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);