mirror of
https://github.com/Dongyifengs/AssetStudio-Genshin-MoYi.git
synced 2025-04-22 20:49:18 +08:00
34 lines
479 B
C++
34 lines
479 B
C++
#include <fbxsdk.h>
|
|
|
|
#include "asfbx_context.h"
|
|
|
|
AsFbxContext::AsFbxContext()
|
|
{
|
|
pSdkManager = nullptr;
|
|
pScene = nullptr;
|
|
pTextures = nullptr;
|
|
pMaterials = nullptr;
|
|
pExporter = nullptr;
|
|
pBindPose = nullptr;
|
|
}
|
|
|
|
AsFbxContext::~AsFbxContext()
|
|
{
|
|
framePaths.clear();
|
|
|
|
delete pMaterials;
|
|
delete pTextures;
|
|
|
|
if (pExporter != nullptr) {
|
|
pExporter->Destroy();
|
|
}
|
|
|
|
if (pScene != nullptr) {
|
|
pScene->Destroy();
|
|
}
|
|
|
|
if (pSdkManager != nullptr) {
|
|
pSdkManager->Destroy();
|
|
}
|
|
}
|