mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Made direct start up automatically if want-directtools or cluster-mode set
This commit is contained in:
parent
ca6a48e55b
commit
e1d4f45ae0
@ -201,9 +201,10 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
|
|
||||||
# Start Tk and DIRECT if specified by Configrc
|
# Start Tk and DIRECT if specified by Configrc
|
||||||
self.startTk(self.config.GetBool('want-tk', 0))
|
self.startTk(self.config.GetBool('want-tk', 0))
|
||||||
self.startDirect(self.config.GetBool('want-directtools', 0))
|
# Start DIRECT if specified in Configrc or in cluster mode
|
||||||
|
fDirect = (self.config.GetBool('want-directtools', 0) or
|
||||||
self.restart()
|
(base.config.GetString("cluster-mode", '') != ''))
|
||||||
|
self.startDirect(fDirect)
|
||||||
|
|
||||||
def exitfunc(self):
|
def exitfunc(self):
|
||||||
"""exitfunc(self)
|
"""exitfunc(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user