0

'forcerender' option to render dict now works. Updated docs.

This commit is contained in:
Andrew Brown
2012-03-03 14:50:39 -05:00
parent b8974ae430
commit fd2f6193e6
2 changed files with 19 additions and 0 deletions

View File

@@ -299,6 +299,8 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
logging.error("You must specify at least one render in your config file. See the docs if you're having trouble")
return 1
#####################
# Do a few last minute things to each render dictionary here
for rname, render in config['renders'].iteritems():
# Convert render['world'] to the world path, and store the original
# in render['worldname_orig']
@@ -311,6 +313,10 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
render['worldname_orig'] = render['world']
render['world'] = worldpath
# If 'forcerender' is set, change renderchecks to 2
if render.get('forcerender', False):
render['renderchecks'] = 2
destdir = config['outputdir']
if not destdir:
logging.error("You must specify the output directory in your config file.")