Skip to content

Commit

Permalink
Fix a bug in patchAttributes function (#92)
Browse files Browse the repository at this point in the history
This bug led to a load of incorrect normal vectors in some files exported from Maya.
  • Loading branch information
kochol authored Feb 16, 2024
1 parent 766bceb commit eefc3df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ofbx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit eefc3df

Please sign in to comment.