Update FBXMeshGeometry.cpp

Fix build.
pull/1852/head
Kim Kulling 2018-03-22 23:08:25 +01:00 committed by GitHub
parent 13ae0a0ac3
commit be4c780115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ const std::vector<unsigned int>& MeshGeometry::GetFaceIndexCounts() const {
// ------------------------------------------------------------------------------------------------
const std::vector<aiVector2D>& MeshGeometry::GetTextureCoords( unsigned int index ) const {
const std::vector<aiVector2D> empty;
static const std::vector<aiVector2D> 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<aiColor4D>& MeshGeometry::GetVertexColors( unsigned int index ) const {
const std::vector<aiColor4D> empty;
static const std::vector<aiColor4D> empty;
return index >= AI_MAX_NUMBER_OF_COLOR_SETS ? empty : m_colors[ index ];
}