0

Only pass to TileSet the options it required

This commit is contained in:
Andrew Chin
2012-01-16 20:35:13 -05:00
parent 728351f9a3
commit aa34853664
2 changed files with 15 additions and 1 deletions

View File

@@ -294,7 +294,10 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
print "tileset_dir: %r" % tileset_dir
if not os.path.exists(tileset_dir):
os.mkdir(tileset_dir)
tset = tileset.TileSet(rset, assetMrg, tex, render, tileset_dir)
# only pass to the TileSet the options it really cares about
tileSetOpts = util.dict_subset(render, ["name", "imgformat", "renderchecks", "rerenderprob", "bgcolor", "imgquality", "optimizeimg", "rendermode"])
tset = tileset.TileSet(rset, assetMrg, tex, tileSetOpts, tileset_dir)
tilesets.append(tset)