Fix the names of missing textures not correctly logged.

This commit is contained in:
2023-12-02 00:32:42 +08:00
parent 7298645850
commit 00d47cde0c

View File

@@ -462,9 +462,9 @@ namespace Cryville.Crtr {
#endif
while (!texLoader.isDone) yield return (float)i / queue.Count;
#if UNITY_5_4_OR_NEWER
string url = texLoader.url;
string name = StringUtils.TrimExt(url.Substring(url.LastIndexOfAny(new char[] {'/', '\\'}) + 1));
if (texHandler.isDone) {
string url = texLoader.url;
string name = StringUtils.TrimExt(url.Substring(url.LastIndexOfAny(new char[] {'/', '\\'}) + 1));
var tex = texHandler.texture;
tex.wrapMode = TextureWrapMode.Clamp;
if (frames.ContainsKey(name)) {