Skip to content

Commit

Permalink
BUGFIX: autopacked IDs were doing duplicate IDs again
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahvohck committed Dec 21, 2020
1 parent 9a221eb commit 90ca2f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions loader/assets/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ def _add_texture(filename):
mod_local_id = asset.get("filename").lstrip("/")
if ".png" not in mod_local_id:
mod_local_id += ".png"
needs_autogeneration.add(mod_local_id)
_add_texture(mod_local_id)
if mod_local_id not in needs_autogeneration:
needs_autogeneration.add(mod_local_id)
_add_texture(mod_local_id)
if mod_local_id not in mapping_n_region:
continue
new_id = mapping_n_region[mod_local_id]
Expand Down

0 comments on commit 90ca2f9

Please sign in to comment.