mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
Send a message when music has been enabled so that the game can appropriately choose what music to play
This commit is contained in:
parent
3627e9ff2c
commit
f859cf502d
@ -1495,6 +1495,9 @@ class ShowBase(DirectObject.DirectObject):
|
||||
self.musicManager.setActive(bEnableMusic)
|
||||
self.musicActive = bEnableMusic
|
||||
if bEnableMusic:
|
||||
# This is useful when we want to play different music
|
||||
# from what the manager has queued
|
||||
messenger.send("MusicEnabled")
|
||||
self.notify.debug("Enabling music")
|
||||
else:
|
||||
self.notify.debug("Disabling music")
|
||||
|
Loading…
x
Reference in New Issue
Block a user