Skip to content

Commit

Permalink
fix: successful reimport message being called regardless of sucess of…
Browse files Browse the repository at this point in the history
… reimport
  • Loading branch information
sinnwrig committed Oct 3, 2024
1 parent 85d36bb commit c94f5a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Prowl.Editor/Assets/AssetDatabase.Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ public static void Update(bool doUnload = true, bool forceCacheUpdate = false)
// Defer the Reimports untill after all Meta files are loaded/updated
foreach (var file in toReimport)
{
Reimport(new(file));
Debug.Log("Reimported: " + $"{ToRelativePath(new(file))}!");
if (Reimport(new(file)))
Debug.Log("Reimported: " + $"{ToRelativePath(new(file))}!");
}

if (doUnload)
Expand Down

0 comments on commit c94f5a3

Please sign in to comment.