mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Add unloadSfx function.
This commit is contained in:
parent
c390bb15ba
commit
ac89fe25bd
@ -455,6 +455,10 @@ class Loader(DirectObject):
|
||||
cb.requests[request] = True
|
||||
return cb
|
||||
|
||||
def unloadSfx (self, sfx):
|
||||
if (sfx):
|
||||
base.sfxManagerList[0].uncacheSound (sfx.getName())
|
||||
|
||||
## def makeNodeNamesUnique(self, nodePath, nodeCount):
|
||||
## if nodeCount == 0:
|
||||
## Loader.modelCount += 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user