2
0
Эх сурвалжийг харах

Added support for MovieAudio to loadSfx

Josh Yelon 17 жил өмнө
parent
commit
a640847f8f

+ 3 - 0
direct/src/showbase/Loader.py

@@ -427,6 +427,9 @@ class Loader(DirectObject):
             # We were given a single sound pathname.
             soundList = [soundPath]
             gotList = False
+        elif isinstance(soundPath, MovieAudio):
+            soundList = [soundPath]
+            gotList = False
         else:
             # Assume we were given a list of sound pathnames.
             soundList = soundPath