mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Cosmetics + add assertion
This commit is contained in:
parent
04b3235020
commit
d80e20482b
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue