mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-27 22:00:23 -04:00
Fixed bug
This commit is contained in:
parent
32cce894ac
commit
738b084440
@ -49,11 +49,15 @@ namespace AssetStudio
|
|||||||
|
|
||||||
FbxGlobalSettings& globalSettings = pScene->GetGlobalSettings();
|
FbxGlobalSettings& globalSettings = pScene->GetGlobalSettings();
|
||||||
globalSettings.SetSystemUnit(FbxSystemUnit(scaleFactor));
|
globalSettings.SetSystemUnit(FbxSystemUnit(scaleFactor));
|
||||||
|
|
||||||
|
if (imported->AnimationList->Count > 0)
|
||||||
|
{
|
||||||
auto ani = imported->AnimationList[0];
|
auto ani = imported->AnimationList[0];
|
||||||
if (ani->SampleRate == 60.0f)
|
if (ani->SampleRate == 60.0f)
|
||||||
{
|
{
|
||||||
globalSettings.SetTimeMode(FbxTime::eFrames60);
|
globalSettings.SetTimeMode(FbxTime::eFrames60);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cDest = StringToUTF8(name);
|
cDest = StringToUTF8(name);
|
||||||
pExporter = FbxExporter::Create(pScene, "");
|
pExporter = FbxExporter::Create(pScene, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user