fix Tk crash on OSX
This commit is contained in:
parent
626294831d
commit
9dcc7a5e35
|
|
@ -2802,8 +2802,10 @@ class ShowBase(DirectObject.DirectObject):
|
|||
fWantTk = bool(fWantTk)
|
||||
if self.wantTk != fWantTk:
|
||||
self.wantTk = fWantTk
|
||||
initAppForGui()
|
||||
# We need to import this before initAppForGui,
|
||||
# in order to prevent a low-level crash on OSX
|
||||
from direct.showbase import TkGlobal
|
||||
initAppForGui()
|
||||
TkGlobal.spawnTkLoop()
|
||||
|
||||
def startDirect(self, fWantDirect = 1, fWantTk = 1, fWantWx = 0):
|
||||
|
|
|
|||
Loading…
Reference in New Issue