From be4c7801152c3b54bb32eb7d4598a140b4efcd5f Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 22 Mar 2018 23:08:25 +0100 Subject: [PATCH] Update FBXMeshGeometry.cpp Fix build. --- code/FBXMeshGeometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/FBXMeshGeometry.cpp b/code/FBXMeshGeometry.cpp index 12001f76c..cc1a5a83e 100644 --- a/code/FBXMeshGeometry.cpp +++ b/code/FBXMeshGeometry.cpp @@ -216,7 +216,7 @@ const std::vector& MeshGeometry::GetFaceIndexCounts() const { // ------------------------------------------------------------------------------------------------ const std::vector& MeshGeometry::GetTextureCoords( unsigned int index ) const { - const std::vector empty; + static const std::vector empty; return index >= AI_MAX_NUMBER_OF_TEXTURECOORDS ? empty : m_uvs[ index ]; } @@ -225,7 +225,7 @@ std::string MeshGeometry::GetTextureCoordChannelName( unsigned int index ) const } const std::vector& MeshGeometry::GetVertexColors( unsigned int index ) const { - const std::vector empty; + static const std::vector empty; return index >= AI_MAX_NUMBER_OF_COLOR_SETS ? empty : m_colors[ index ]; }