mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
moved factory menu enable/disable to DistributedFactory
This commit is contained in:
parent
5ecb8550d6
commit
35f3f1678a
@ -85,9 +85,6 @@ class DistributedLevel(DistributedObject.DistributedObject,
|
|||||||
# all our entities at that time.
|
# all our entities at that time.
|
||||||
base.cr.timeManager.synchronize('DistributedLevel.generate')
|
base.cr.timeManager.synchronize('DistributedLevel.generate')
|
||||||
|
|
||||||
# add factory menu to SpeedChat
|
|
||||||
base.localAvatar.chatMgr.chatInputSpeedChat.addFactoryMenu()
|
|
||||||
|
|
||||||
# add special camera views
|
# add special camera views
|
||||||
self.factoryViews = FactoryCameraViews.FactoryCameraViews(self)
|
self.factoryViews = FactoryCameraViews.FactoryCameraViews(self)
|
||||||
|
|
||||||
@ -349,8 +346,6 @@ class DistributedLevel(DistributedObject.DistributedObject,
|
|||||||
def delete(self):
|
def delete(self):
|
||||||
DistributedLevel.notify.debug('delete')
|
DistributedLevel.notify.debug('delete')
|
||||||
DistributedObject.DistributedObject.delete(self)
|
DistributedObject.DistributedObject.delete(self)
|
||||||
# remove factory menu to SpeedChat
|
|
||||||
base.localAvatar.chatMgr.chatInputSpeedChat.removeFactoryMenu()
|
|
||||||
# remove special camera views
|
# remove special camera views
|
||||||
del self.factoryViews
|
del self.factoryViews
|
||||||
# make sure the ouch task is stopped
|
# make sure the ouch task is stopped
|
||||||
|
Loading…
x
Reference in New Issue
Block a user