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…
Reference in New Issue