mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
Make Loader.loadSound() accept a MovieAudio instance as soundPath
This functionality seems to have inadvertently been removed by refactoring commit 23bf9ea5. Closes #383
This commit is contained in:
parent
cb9e65720a
commit
a333353af6
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user