From eefc3df905f762226df980ca95a6c4bac1d0c1ae Mon Sep 17 00:00:00 2001 From: CyrusGP Date: Fri, 16 Feb 2024 07:44:48 -0800 Subject: [PATCH] Fix a bug in patchAttributes function (#92) This bug led to a load of incorrect normal vectors in some files exported from Maya. --- src/ofbx.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ofbx.cpp b/src/ofbx.cpp index f14444e..95958ad 100644 --- a/src/ofbx.cpp +++ b/src/ofbx.cpp @@ -1164,6 +1164,7 @@ struct GeometryDataImpl : GeometryData { T res = attr; if (!attr.values.empty() && attr.mapping == VertexDataMapping::BY_VERTEX && attr.indices.empty()) { res.indices = positions.indices.data(); + res.count = int(positions.indices.size()); } return res; }