Fix AudioStreamPlayer3D autoplay and internal notifications

This commit is contained in:
Aaron Franke 2024-01-30 00:56:12 -06:00
parent 51991e2014
commit 52aa5668fe
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF
1 changed files with 1 additions and 0 deletions

View File

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