FBXMeshGeometry: solve issue #5116 using patch provided by darktjm

This commit is contained in:
Stephen Gold
2023-12-04 20:57:10 +01:00
committed by Kim Kulling
parent d311fa95c6
commit 769e82ce5e
+2 -2
View File
@@ -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;
}