修改动画分帧工具的bug

This commit is contained in:
shenjianxing 2025-01-09 16:32:17 +08:00
parent cff16c54cf
commit 9201c7343a

View File

@ -5,7 +5,6 @@ using System.Collections;
using System.IO;
using System.Text.RegularExpressions;
using System;
using System.IO;
public class FbxAnimListPostprocessor : MonoBehaviour
@ -69,13 +68,20 @@ public class FbxAnimListPostprocessor : MonoBehaviour
}
if (match.Groups["loop"].Success)
{
clip.loop = match.Groups["loop"].Value == "loop";
if (match.Groups["loop"].Value == "loop")
{
clip.loop = true;
clip.wrapMode = WrapMode.Loop;
}
else
{
clip.loop = false;
}
}
if (match.Groups["name"].Success)
{
clip.name = match.Groups["name"].Value;
}
List.Add(clip);
match = regexString.Match(sAnimList, match.Index + match.Length);