mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-27 22:00:23 -04:00
Fixed #373
This commit is contained in:
parent
a6264b39d1
commit
32cce894ac
@ -205,7 +205,7 @@ namespace AssetStudio
|
|||||||
public class ImportedKeyframedAnimation
|
public class ImportedKeyframedAnimation
|
||||||
{
|
{
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
public float SampleRate { get; set; }
|
||||||
public List<ImportedAnimationKeyframedTrack> TrackList { get; set; }
|
public List<ImportedAnimationKeyframedTrack> TrackList { get; set; }
|
||||||
|
|
||||||
public ImportedAnimationKeyframedTrack FindTrack(string path)
|
public ImportedAnimationKeyframedTrack FindTrack(string path)
|
||||||
|
@ -49,6 +49,11 @@ namespace AssetStudio
|
|||||||
|
|
||||||
FbxGlobalSettings& globalSettings = pScene->GetGlobalSettings();
|
FbxGlobalSettings& globalSettings = pScene->GetGlobalSettings();
|
||||||
globalSettings.SetSystemUnit(FbxSystemUnit(scaleFactor));
|
globalSettings.SetSystemUnit(FbxSystemUnit(scaleFactor));
|
||||||
|
auto ani = imported->AnimationList[0];
|
||||||
|
if (ani->SampleRate == 60.0f)
|
||||||
|
{
|
||||||
|
globalSettings.SetTimeMode(FbxTime::eFrames60);
|
||||||
|
}
|
||||||
|
|
||||||
cDest = StringToUTF8(name);
|
cDest = StringToUTF8(name);
|
||||||
pExporter = FbxExporter::Create(pScene, "");
|
pExporter = FbxExporter::Create(pScene, "");
|
||||||
|
@ -673,6 +673,7 @@ namespace AssetStudio
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
iAnim.Name = name;
|
iAnim.Name = name;
|
||||||
|
iAnim.SampleRate = animationClip.m_SampleRate;
|
||||||
iAnim.TrackList = new List<ImportedAnimationKeyframedTrack>();
|
iAnim.TrackList = new List<ImportedAnimationKeyframedTrack>();
|
||||||
AnimationList.Add(iAnim);
|
AnimationList.Add(iAnim);
|
||||||
if (animationClip.m_Legacy)
|
if (animationClip.m_Legacy)
|
||||||
|
Loading…
Reference in New Issue
Block a user