mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
showbase: Don't disable Windows mesasge loop with multi-threaded pipeline
Fixes half of #1494
This commit is contained in:
parent
3160d7f3e9
commit
c08353dea7
@ -3219,8 +3219,9 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
init_app_for_gui()
|
init_app_for_gui()
|
||||||
|
|
||||||
# Disable the Windows message loop, since Tcl wants to handle this all
|
# Disable the Windows message loop, since Tcl wants to handle this all
|
||||||
# on its own.
|
# on its own, except if the Panda window is on a separate thread.
|
||||||
ConfigVariableBool('disable-message-loop', False).value = True
|
if self.graphicsEngine.getThreadingModel().getDrawStage() == 0:
|
||||||
|
ConfigVariableBool('disable-message-loop', False).value = True
|
||||||
|
|
||||||
if ConfigVariableBool('tk-main-loop', True):
|
if ConfigVariableBool('tk-main-loop', True):
|
||||||
# Put Tkinter in charge of the main loop. It really
|
# Put Tkinter in charge of the main loop. It really
|
||||||
|
Loading…
x
Reference in New Issue
Block a user