mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-27 22:00:23 -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 x = normalData[i * 2 + 0];
|
||||||
var y = normalData[i * 2 + 1];
|
var y = normalData[i * 2 + 1];
|
||||||
m_Normals[i * 3] = x;
|
|
||||||
m_Normals[i * 3 + 1] = y;
|
|
||||||
var zsqr = 1 - x * x - y * y;
|
var zsqr = 1 - x * x - y * y;
|
||||||
float z;
|
float z;
|
||||||
if (zsqr >= 0f)
|
if (zsqr >= 0f)
|
||||||
|
@ -19,17 +19,6 @@ namespace AssetStudio
|
|||||||
|
|
||||||
FbxIOSettings* ios = FbxIOSettings::Create(*pSdkManager, IOSROOT);
|
FbxIOSettings* ios = FbxIOSettings::Create(*pSdkManager, IOSROOT);
|
||||||
(*pSdkManager)->SetIOSettings(ios);
|
(*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, "");
|
*pScene = FbxScene::Create(*pSdkManager, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,8 +90,6 @@ namespace AssetStudio
|
|||||||
IOS_REF.SetBoolProp(EXP_FBX_GLOBAL_SETTINGS, true);
|
IOS_REF.SetBoolProp(EXP_FBX_GLOBAL_SETTINGS, true);
|
||||||
|
|
||||||
FbxGlobalSettings& globalSettings = pScene->GetGlobalSettings();
|
FbxGlobalSettings& globalSettings = pScene->GetGlobalSettings();
|
||||||
FbxTime::EMode pTimeMode = FbxTime::eFrames24;
|
|
||||||
globalSettings.SetTimeMode(pTimeMode);
|
|
||||||
|
|
||||||
if (!pExporter->Initialize(cDest, lFormatIndex, pSdkManager->GetIOSettings()))
|
if (!pExporter->Initialize(cDest, lFormatIndex, pSdkManager->GetIOSettings()))
|
||||||
{
|
{
|
||||||
@ -489,7 +487,6 @@ namespace AssetStudio
|
|||||||
if (pTextureDiffuse != NULL)
|
if (pTextureDiffuse != NULL)
|
||||||
{
|
{
|
||||||
LinkTexture(mat, 0, pTextureDiffuse, pMat->Diffuse);
|
LinkTexture(mat, 0, pTextureDiffuse, pMat->Diffuse);
|
||||||
pMat->TransparentColor.ConnectSrcObject(pTextureDiffuse);
|
|
||||||
hasTexture = true;
|
hasTexture = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user