Skip to content

Commit

Permalink
Merge pull request #89 from ThanatosGit/write-pkgs-fix
Browse files Browse the repository at this point in the history
Write pkgs with only ensured assets
  • Loading branch information
henriquegemignani authored Oct 23, 2023
2 parents 2c23f83 + 47e2caa commit 87ab147
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mercury_engine_data_structures/file_tree_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,12 @@ def save_modifications(self, output_path: Path, output_format: OutputFormat, *,
for asset_id in self._modified_resources.keys():
modified_pkgs.update(self._files_for_asset_id[asset_id])

# Ensure pkgs are written which only have new ensured assets without
# completly new assets
for key, asset_ids in self._ensured_asset_ids.items():
if len(asset_ids) != 0:
modified_pkgs.add(key)

if None in modified_pkgs:
modified_pkgs.remove(None)

Expand Down

0 comments on commit 87ab147

Please sign in to comment.