From 752b75b7335eb72ecd56f0d95e29027d679ae1a0 Mon Sep 17 00:00:00 2001 From: Abhishek Nath Date: Sat, 5 Jun 2010 02:07:44 +0000 Subject: [PATCH] When the audio manager isn't active we don't bother calculating the 3d audio --- direct/src/showbase/Audio3DManager.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/direct/src/showbase/Audio3DManager.py b/direct/src/showbase/Audio3DManager.py index 04fe174e03..36c7b0b6ab 100644 --- a/direct/src/showbase/Audio3DManager.py +++ b/direct/src/showbase/Audio3DManager.py @@ -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]):