Fix the names of missing textures not correctly logged.
This commit is contained in:
@@ -462,9 +462,9 @@ namespace Cryville.Crtr {
|
|||||||
#endif
|
#endif
|
||||||
while (!texLoader.isDone) yield return (float)i / queue.Count;
|
while (!texLoader.isDone) yield return (float)i / queue.Count;
|
||||||
#if UNITY_5_4_OR_NEWER
|
#if UNITY_5_4_OR_NEWER
|
||||||
|
string url = texLoader.url;
|
||||||
|
string name = StringUtils.TrimExt(url.Substring(url.LastIndexOfAny(new char[] {'/', '\\'}) + 1));
|
||||||
if (texHandler.isDone) {
|
if (texHandler.isDone) {
|
||||||
string url = texLoader.url;
|
|
||||||
string name = StringUtils.TrimExt(url.Substring(url.LastIndexOfAny(new char[] {'/', '\\'}) + 1));
|
|
||||||
var tex = texHandler.texture;
|
var tex = texHandler.texture;
|
||||||
tex.wrapMode = TextureWrapMode.Clamp;
|
tex.wrapMode = TextureWrapMode.Clamp;
|
||||||
if (frames.ContainsKey(name)) {
|
if (frames.ContainsKey(name)) {
|
||||||
|
Reference in New Issue
Block a user