global init
This commit is contained in:
parent
cfba7a8f55
commit
a5be208188
|
|
@ -80,11 +80,9 @@ class ConnectionRepository(
|
|||
# Update the required fields
|
||||
distObj.generateInit() # Only called when constructed
|
||||
distObj.generate()
|
||||
## if wantOtpServer:
|
||||
## # TODO: ROGER: where should we get parentId and zoneId?
|
||||
## parentId = None
|
||||
## zoneId = None
|
||||
## distObj.setLocation(parentId, zoneId)
|
||||
distObj.announceGenerate()
|
||||
distObj.parentId = 0
|
||||
distObj.zoneId = 0
|
||||
# updateRequiredFields calls announceGenerate
|
||||
return distObj
|
||||
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ class ShowBase(DirectObject.DirectObject):
|
|||
__builtins__["pandaSystem"] = PandaSystem.getGlobalPtr()
|
||||
__builtins__["__dev__"] = base.config.GetBool('want-dev', 0)
|
||||
__builtins__["wantOtpServer"] = base.config.GetBool('want-otp-server', 0)
|
||||
__builtins__["wantGlobalManagers"] = base.config.GetBool("want-global-managers", 0)
|
||||
__builtins__["wantGlobalManagers"] = base.config.GetBool("want-global-managers", 1)
|
||||
if __debug__:
|
||||
__builtins__["deltaProfiler"] = DeltaProfiler.DeltaProfiler("ShowBase")
|
||||
__builtins__["onScreenDebug"] = OnScreenDebug.OnScreenDebug()
|
||||
|
|
|
|||
Loading…
Reference in New Issue