Skip to content

Commit a333353

Browse files
jspamrdb
authored andcommitted
Make Loader.loadSound() accept a MovieAudio instance as soundPath
This functionality seems to have inadvertently been removed by refactoring commit 23bf9ea. Closes panda3d#383
1 parent cb9e657 commit a333353

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

direct/src/showbase/Loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -934,8 +934,8 @@ def loadSound(self, manager, soundPath, positional = False,
934934
just as in loadModel(); otherwise, the loading happens before
935935
loadSound() returns."""
936936

937-
if not isinstance(soundPath, (MovieAudio, tuple, list, set)):
938-
# We were given a single sound pathname.
937+
if not isinstance(soundPath, (tuple, list, set)):
938+
# We were given a single sound pathname or a MovieAudio instance.
939939
soundList = [soundPath]
940940
gotList = False
941941
else:

0 commit comments

Comments
 (0)