Skip to content

Commit

Permalink
hdGatling: fix missing Varying interpolation when reading mesh primvars
Browse files Browse the repository at this point in the history
  • Loading branch information
pablode committed Aug 18, 2024
1 parent 273c846 commit 0567c12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hdGatling/mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,10 @@ bool HdGatlingMesh::_ReadTriangulatedPrimvar(HdSceneDelegate* sceneDelegate,

HdVtBufferSource buffer(name, boxedValues);

if (interpolation == HdInterpolationVertex)
if (interpolation == HdInterpolationVertex ||
// Varying is equivalent to Vertex for non-subdivided polygonal surfaces (and we don't support subdivision):
// https://github.com/usd-wg/assets/tree/907d5f17bbe933fc14441a3f3ab69a5bd8abe32a/docs/PrimvarInterpolation#vertex
interpolation == HdInterpolationVarying)
{
result = boxedValues;
isIndexed = true;
Expand Down

0 comments on commit 0567c12

Please sign in to comment.