fix problems in exporting fbx with multiple blendshapes

This commit is contained in:
Ishotihadus
2020-09-16 19:44:11 +09:00
parent 06ce479eb6
commit 32ee8b326f
5 changed files with 60 additions and 14 deletions

View File

@ -500,7 +500,7 @@ namespace AssetStudio
crc.Update(bytes, 0, (uint)bytes.Length);
morphChannelNames[crc.GetDigest()] = blendShapeName;
channel.Name = shapeChannel.name;
channel.Name = shapeChannel.name.Split('.').Last();
channel.KeyframeList = new List<ImportedMorphKeyframe>(shapeChannel.frameCount);
var frameEnd = shapeChannel.frameIndex + shapeChannel.frameCount;
for (int frameIdx = shapeChannel.frameIndex; frameIdx < frameEnd; frameIdx++)