mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
update wait bar in pgraph too
This commit is contained in:
parent
be67f3475e
commit
19269dcb6e
@ -1,4 +1,5 @@
|
||||
from DirectFrame import *
|
||||
import UsePgraph
|
||||
|
||||
"""
|
||||
import DirectWaitBar
|
||||
@ -77,7 +78,13 @@ class DirectWaitBar(DirectFrame):
|
||||
|
||||
def update(self, value):
|
||||
self['value'] = value
|
||||
# finally update the window
|
||||
|
||||
# Render a frame out-of-sync with the igloop to update the
|
||||
# window right now. This allows the wait bar to be updated
|
||||
# even though we are not normally rendering frames.
|
||||
if UsePgraph.use:
|
||||
base.graphicsEngine.renderFrame()
|
||||
else:
|
||||
base.win.renderAndUpdate()
|
||||
|
||||
def finish(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user