소스 검색

Make Loader.loadSound() accept a MovieAudio instance as soundPath

This functionality seems to have inadvertently been removed by
refactoring commit 23bf9ea5.

Closes #383
jspam 7 년 전
부모
커밋
a333353af6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      direct/src/showbase/Loader.py

+ 2 - 2
direct/src/showbase/Loader.py

@@ -934,8 +934,8 @@ class Loader(DirectObject):
         just as in loadModel(); otherwise, the loading happens before
         loadSound() returns."""
 
-        if not isinstance(soundPath, (MovieAudio, tuple, list, set)):
-            # We were given a single sound pathname.
+        if not isinstance(soundPath, (tuple, list, set)):
+            # We were given a single sound pathname or a MovieAudio instance.
             soundList = [soundPath]
             gotList = False
         else: