mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Use --pause instead of --nopause
This commit is contained in:
parent
5c3575bf54
commit
3de723a926
12
main.py
12
main.py
@ -104,11 +104,11 @@ def main(args, prof):
|
|||||||
def poll(dt):
|
def poll(dt):
|
||||||
out = next(gen, False)
|
out = next(gen, False)
|
||||||
if out is False:
|
if out is False:
|
||||||
if args.nopause:
|
if args.pause:
|
||||||
pyglet.app.exit()
|
|
||||||
else:
|
|
||||||
label.text = "Done. ('q' to quit)"
|
label.text = "Done. ('q' to quit)"
|
||||||
pyglet.clock.unschedule(poll)
|
#pyglet.clock.unschedule(poll)
|
||||||
|
else:
|
||||||
|
pyglet.app.exit()
|
||||||
elif out is not None:
|
elif out is not None:
|
||||||
real_dt = time.time() - last_time[0]
|
real_dt = time.time() - last_time[0]
|
||||||
last_time[0] = time.time()
|
last_time[0] = time.time()
|
||||||
@ -143,8 +143,8 @@ if __name__ == "__main__":
|
|||||||
help="Output directory", default='.')
|
help="Output directory", default='.')
|
||||||
parser.add_argument('--resume', action='store_true', dest='resume',
|
parser.add_argument('--resume', action='store_true', dest='resume',
|
||||||
help="Don't overwrite output files that are newer than the input")
|
help="Don't overwrite output files that are newer than the input")
|
||||||
parser.add_argument('--nopause', action='store_true',
|
parser.add_argument('--pause', action='store_true',
|
||||||
help="Don't pause after rendering the last frame when previewing")
|
help="Don't close the preview window after rendering is finished")
|
||||||
|
|
||||||
parser.add_argument('--keep', action='store_true', dest='keep',
|
parser.add_argument('--keep', action='store_true', dest='keep',
|
||||||
help='Keep compilation directory (disables kernel caching)')
|
help='Keep compilation directory (disables kernel caching)')
|
||||||
|
Loading…
Reference in New Issue
Block a user