diff --git a/src/Fbx2Raw.cpp b/src/Fbx2Raw.cpp index e5cd64d..b17c2a4 100644 --- a/src/Fbx2Raw.cpp +++ b/src/Fbx2Raw.cpp @@ -240,7 +240,7 @@ class FbxMaterialsAccess { public: - FbxMaterialAccess(const FbxMesh *pMesh) : + FbxMaterialsAccess(const FbxMesh *pMesh, const std::map &textureNames) : mappingMode(FbxGeometryElement::eNone), mesh(nullptr), indices(nullptr) @@ -490,7 +490,7 @@ static void ReadMesh(RawModel &raw, FbxScene *pScene, FbxNode *pNode, const std: const FbxLayerElementAccess uvLayer0(pMesh->GetElementUV(0), pMesh->GetElementUVCount()); const FbxLayerElementAccess uvLayer1(pMesh->GetElementUV(1), pMesh->GetElementUVCount()); const FbxSkinningAccess skinning(pMesh, pScene, pNode); - const FbxMaterialsAccess materials(pMesh, textureNames); + const FbxMaterialsAccess materials(pMesh, textureNames); if (verboseOutput) { fmt::printf( diff --git a/src/RawModel.h b/src/RawModel.h index 35f5a62..2da08eb 100644 --- a/src/RawModel.h +++ b/src/RawModel.h @@ -11,6 +11,7 @@ #define __RAWMODEL_H__ #include +#include enum RawVertexAttribute {