diff --git a/AssetStudio/Classes/Mesh.cs b/AssetStudio/Classes/Mesh.cs index 19cde33..7cd1cab 100644 --- a/AssetStudio/Classes/Mesh.cs +++ b/AssetStudio/Classes/Mesh.cs @@ -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) diff --git a/AssetStudioFBX/AssetStudioFBX.cpp b/AssetStudioFBX/AssetStudioFBX.cpp index e21d2a0..1836f1d 100644 --- a/AssetStudioFBX/AssetStudioFBX.cpp +++ b/AssetStudioFBX/AssetStudioFBX.cpp @@ -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, ""); } diff --git a/AssetStudioFBX/AssetStudioFBXExporter.cpp b/AssetStudioFBX/AssetStudioFBXExporter.cpp index 5cf00b4..de54188 100644 --- a/AssetStudioFBX/AssetStudioFBXExporter.cpp +++ b/AssetStudioFBX/AssetStudioFBXExporter.cpp @@ -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; }