This commit is contained in:
Perfare 2019-07-16 17:49:10 +08:00
parent a6264b39d1
commit 32cce894ac
3 changed files with 7 additions and 1 deletions

View File

@ -205,7 +205,7 @@ namespace AssetStudio
public class ImportedKeyframedAnimation
{
public string Name { get; set; }
public float SampleRate { get; set; }
public List<ImportedAnimationKeyframedTrack> TrackList { get; set; }
public ImportedAnimationKeyframedTrack FindTrack(string path)

View File

@ -49,6 +49,11 @@ namespace AssetStudio
FbxGlobalSettings& globalSettings = pScene->GetGlobalSettings();
globalSettings.SetSystemUnit(FbxSystemUnit(scaleFactor));
auto ani = imported->AnimationList[0];
if (ani->SampleRate == 60.0f)
{
globalSettings.SetTimeMode(FbxTime::eFrames60);
}
cDest = StringToUTF8(name);
pExporter = FbxExporter::Create(pScene, "");

View File

@ -673,6 +673,7 @@ namespace AssetStudio
}
}
iAnim.Name = name;
iAnim.SampleRate = animationClip.m_SampleRate;
iAnim.TrackList = new List<ImportedAnimationKeyframedTrack>();
AnimationList.Add(iAnim);
if (animationClip.m_Legacy)