This commit is contained in:
Perfare 2019-07-29 00:31:43 +08:00
parent dc05e5b5eb
commit e62b6c3d77

View File

@ -874,14 +874,9 @@ namespace AssetStudio
bTrack.BlendShape = new ImportedBlendShape(); bTrack.BlendShape = new ImportedBlendShape();
bTrack.BlendShape.ChannelName = channelName; bTrack.BlendShape.ChannelName = channelName;
bTrack.BlendShape.Keyframes.Add(new ImportedKeyframe<float>(time, data[curveIndex++ + offset])); bTrack.BlendShape.Keyframes.Add(new ImportedKeyframe<float>(time, data[curveIndex++ + offset]));
return;
} }
if (binding.path == 0) else if (binding.typeID == ClassIDType.Transform)
{ {
curveIndex++;
return;
}
var path = FixBonePath(GetPathFromHash(binding.path)); var path = FixBonePath(GetPathFromHash(binding.path));
var track = iAnim.FindTrack(path); var track = iAnim.FindTrack(path);
@ -926,6 +921,11 @@ namespace AssetStudio
break; break;
} }
} }
else
{
curveIndex++;
}
}
private string GetPathFromHash(uint hash) private string GetPathFromHash(uint hash)
{ {