Skip to content

Commit

Permalink
1.5.2
Browse files Browse the repository at this point in the history
animation clip suffix fix.
  • Loading branch information
soupday committed Aug 2, 2023
1 parent 84fc91b commit 8dd4632
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Editor/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1095,8 +1095,9 @@ public static bool AssetPathExists(string assetPath)
public static bool AssetPathIsEmpty(string assetPath)
{
const string emptyGuid = "00000000000000000000000000000000";
string pathGUID = AssetDatabase.AssetPathToGUID(assetPath);

return AssetDatabase.AssetPathToGUID(assetPath).Equals(emptyGuid);
return (pathGUID.Equals(emptyGuid) || string.IsNullOrEmpty(pathGUID));
}

public static bool HasMaterialKeywords(GameObject obj, params string[] keywords)
Expand Down

0 comments on commit 8dd4632

Please sign in to comment.