From b44d3b19a8bccf8d2f48376b2801cb7ebf5bbec2 Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Tue, 17 Oct 2017 17:56:21 -0700 Subject: [PATCH] Fix build across all platforms. --- src/Fbx2Raw.cpp | 4 ++-- src/RawModel.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 {