Skip to content

Commit

Permalink
FBXMeshGeometry: solve issue assimp#5116 using patch provided by darktjm
Browse files Browse the repository at this point in the history
stephengold authored and kimkulling committed Dec 4, 2023
1 parent d311fa9 commit 769e82c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/AssetLib/FBX/FBXMeshGeometry.cpp
Original file line number Diff line number Diff line change
@@ -467,9 +467,9 @@ void ResolveVertexDataArray(std::vector<T>& data_out, const Scope& source,
std::vector<int> uvIndices;
ParseVectorDataArray(uvIndices,GetRequiredElement(source,indexDataElementName));

if (uvIndices.size() != vertex_count) {
if (uvIndices.size() != mapping_offsets.size()) {
FBXImporter::LogError("length of input data unexpected for ByVertice mapping: ",
uvIndices.size(), ", expected ", vertex_count);
uvIndices.size(), ", expected ", mapping_offsets.size());
return;
}

0 comments on commit 769e82c

Please sign in to comment.