mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
When the audio manager isn't active we don't bother calculating the 3d audio
This commit is contained in:
parent
5da54c6164
commit
752b75b733
@ -252,6 +252,12 @@ class Audio3DManager:
|
||||
"""
|
||||
# Update the positions of all sounds based on the objects
|
||||
# to which they are attached
|
||||
|
||||
# The audio manager is not active so do nothing
|
||||
if hasattr(self.audio_manager, "getActive"):
|
||||
if self.audio_manager.getActive()==0:
|
||||
return Task.cont
|
||||
|
||||
for known_object in self.sound_dict.keys():
|
||||
tracked_sound = 0
|
||||
while tracked_sound < len(self.sound_dict[known_object]):
|
||||
|
Loading…
x
Reference in New Issue
Block a user