summaryrefslogtreecommitdiffstats
path: root/scene/3d/audio_stream_player_3d.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-20 16:06:28 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-20 16:06:28 +0200
commitd2a5153c6608d0172ebfed3c5984cc6c76ee9c6f (patch)
treece1afe8709fec746db4cca23079c132f9594511c /scene/3d/audio_stream_player_3d.h
parent7e62565f1e075cb5a2b090e320739daa4a8dce9a (diff)
parenta3158d89bb7cba513fc2aa47cdc23fe39d2a1ad3 (diff)
downloadredot-engine-d2a5153c6608d0172ebfed3c5984cc6c76ee9c6f.tar.gz
Merge pull request #96677 from Wierdox/fix_audio_stream_player_3d_still_processing_when_out_of_range
Fix AudioStreamPlayer3D still processing when out of range
Diffstat (limited to 'scene/3d/audio_stream_player_3d.h')
-rw-r--r--scene/3d/audio_stream_player_3d.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/audio_stream_player_3d.h b/scene/3d/audio_stream_player_3d.h
index 72356faad7..91104a06c7 100644
--- a/scene/3d/audio_stream_player_3d.h
+++ b/scene/3d/audio_stream_player_3d.h
@@ -105,6 +105,7 @@ private:
float linear_attenuation = 0;
float max_distance = 0.0;
+ bool was_further_than_max_distance_last_frame = false;
Ref<VelocityTracker3D> velocity_tracker;