Cosmetics + add assertion

This commit is contained in:
Roy Nieterau 2023-01-14 20:33:19 +01:00
parent 04b3235020
commit d80e20482b

View file

@ -195,8 +195,9 @@ def get_export_templates(config, format="png", strip_folder=True):
result = substance_painter.js.evaluate(cmd)
if strip_folder:
for stack, maps in result.items():
for _stack, maps in result.items():
for map_template, map_filepath in maps.items():
assert map_filepath.startswith(folder)
map_filename = map_filepath[len(folder):].lstrip("/")
maps[map_template] = map_filename