Skip to content

Commit

Permalink
Fixed MonoScriptImporter failing on first import
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsakharov committed Mar 31, 2024
1 parent 1bfb1b0 commit 082091e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Prowl.Editor/Assets/Importers/MonoScriptImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public override void Import(SerializedAsset ctx, FileInfo assetPath)

if (lastReload == default)
lastReload = DateTime.UtcNow;
if (lastReload.AddSeconds(2) > DateTime.UtcNow)
else if (lastReload.AddSeconds(2) > DateTime.UtcNow)
return;

EditorApplication.Instance.RegisterReloadOfExternalAssemblies();
Expand Down

0 comments on commit 082091e

Please sign in to comment.