update wait bar in pgraph too

This commit is contained in:
David Rose 2002-03-21 02:02:06 +00:00
parent be67f3475e
commit 19269dcb6e

View File

@ -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):