mirror of
https://github.com/maxartz15/VertexAnimation.git
synced 2025-06-13 23:06:16 +02:00
Fix texture naming error.
Fix texture naming error. FixedString32 -> FixedString64.
This commit is contained in:
@ -158,7 +158,7 @@ namespace TAO.VertexAnimation
|
||||
|
||||
GameObject.DestroyImmediate(inst);
|
||||
|
||||
positionMap.name = string.Format("VA_N-{0}_F-{1}_MF-{2}_FPS-{3}", animationClip.name, animationInfo.frames, animationInfo.maxFrames, animationInfo.fps);
|
||||
positionMap.name = string.Format("VA_N-{0}_F-{1}_MF-{2}_FPS-{3}", NamingConventionUtils.ConvertToValidString(animationClip.name), animationInfo.frames, animationInfo.maxFrames, animationInfo.fps);
|
||||
positionMap.filterMode = FilterMode.Point;
|
||||
positionMap.Apply(false, true);
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using System.Linq;
|
||||
|
||||
namespace TAO.VertexAnimation
|
||||
{
|
||||
@ -50,5 +48,10 @@ namespace TAO.VertexAnimation
|
||||
|
||||
return textureInfo;
|
||||
}
|
||||
|
||||
public static string ConvertToValidString(this string str)
|
||||
{
|
||||
return string.Concat(str.Where(char.IsLetterOrDigit));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user