Skip to content

Commit

Permalink
Prevent empty ANIMs from showing NoData error #67
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsPepperpot committed Oct 12, 2024
1 parent 8b0a023 commit e1b9b5b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions IndustrialPark/ArchiveEditor/ArchiveEditorFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ public void OpenFile(string fileName, bool displayProgressBar, Platform scoobyPl
#endif
}

// Fix to filter out empty ANIM assets ending with ".ATBL" #67
// SpongeBob Movie has some of these in native HIPs (e.g. BB02.hop)
assetsWithError.RemoveAll(a =>
a.reason == ErrorReason.NoData && a.assetname.EndsWith(".ATBL"));

if (assetsWithError.Any())
MessageBox.Show("There was an error loading the following assets and editing may have been disabled for them:\n" + string.Join("\n", assetsWithError),
$"{assetsWithError.Count} Asset(s) with errors",
Expand Down

0 comments on commit e1b9b5b

Please sign in to comment.