mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
fixes
This commit is contained in:
parent
2d0278db87
commit
a233af5b8f
@ -889,8 +889,6 @@ namespace AssetStudio
|
||||
{
|
||||
var x = normalData[i * 2 + 0];
|
||||
var y = normalData[i * 2 + 1];
|
||||
m_Normals[i * 3] = x;
|
||||
m_Normals[i * 3 + 1] = y;
|
||||
var zsqr = 1 - x * x - y * y;
|
||||
float z;
|
||||
if (zsqr >= 0f)
|
||||
|
@ -19,17 +19,6 @@ namespace AssetStudio
|
||||
|
||||
FbxIOSettings* ios = FbxIOSettings::Create(*pSdkManager, IOSROOT);
|
||||
(*pSdkManager)->SetIOSettings(ios);
|
||||
|
||||
FbxString lPath = FbxGetApplicationDirectory();
|
||||
#if defined(FBXSDK_ENV_WIN)
|
||||
FbxString lExtension = "dll";
|
||||
#elif defined(FBXSDK_ENV_MAC)
|
||||
FbxString lExtension = "dylib";
|
||||
#elif defined(FBXSDK_ENV_LINUX)
|
||||
FbxString lExtension = "so";
|
||||
#endif
|
||||
(*pSdkManager)->LoadPluginsDirectory(lPath.Buffer(), lExtension.Buffer());
|
||||
|
||||
*pScene = FbxScene::Create(*pSdkManager, "");
|
||||
}
|
||||
|
||||
|
@ -90,8 +90,6 @@ namespace AssetStudio
|
||||
IOS_REF.SetBoolProp(EXP_FBX_GLOBAL_SETTINGS, true);
|
||||
|
||||
FbxGlobalSettings& globalSettings = pScene->GetGlobalSettings();
|
||||
FbxTime::EMode pTimeMode = FbxTime::eFrames24;
|
||||
globalSettings.SetTimeMode(pTimeMode);
|
||||
|
||||
if (!pExporter->Initialize(cDest, lFormatIndex, pSdkManager->GetIOSettings()))
|
||||
{
|
||||
@ -489,7 +487,6 @@ namespace AssetStudio
|
||||
if (pTextureDiffuse != NULL)
|
||||
{
|
||||
LinkTexture(mat, 0, pTextureDiffuse, pMat->Diffuse);
|
||||
pMat->TransparentColor.ConnectSrcObject(pTextureDiffuse);
|
||||
hasTexture = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user