mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-09 22:00:06 +00:00
Fixes a bug introduced in 808aabf
that causes OsdUtilPatchPartitioner to fail to rebuild the face-varying data table correctly for triangle patches.
This commit is contained in:
parent
068035c26a
commit
180c1804cc
@ -186,9 +186,10 @@ OsdUtilPatchPartitioner::OsdUtilPatchPartitioner(FarPatchTables const *srcPatchT
|
||||
|
||||
// reorder corresponding face-varying table entry
|
||||
if (hasFVarData) {
|
||||
for (int j = 0; j < 4 * fvarWidth; ++j) {
|
||||
int fvarVerts = desc.GetType() == FarPatchTables::TRIANGLES ? 3 : 4;
|
||||
for (int j = 0; j < fvarVerts * fvarWidth; ++j) {
|
||||
newFVarDataTable.push_back(
|
||||
srcFVarData.GetAllData()[patchIndex*4*fvarWidth+j + fvarOffset]);
|
||||
srcFVarData.GetAllData()[patchIndex*fvarVerts*fvarWidth+j + fvarOffset]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user