Skip to content

Commit

Permalink
HnMesh: more accurately set global dirty mesh geometry attrib
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Nov 28, 2024
1 parent 67c2de7 commit 993b46d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hydrogent/src/HnMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ void HnMesh::UpdateRepr(pxr::HdSceneDelegate& SceneDelegate,
m_DrawItemGpuTopologyDirty.store(true);
}

if ((IndexDataDirty || AnyPrimvarDirty) && RenderParam != nullptr)
if ((m_DrawItemGpuGeometryDirty.load() || m_DrawItemGpuTopologyDirty.load()) && RenderParam != nullptr)
{
static_cast<HnRenderParam*>(RenderParam)->MakeAttribDirty(HnRenderParam::GlobalAttrib::MeshGeometry);
++m_GeometryVersion;
Expand Down

0 comments on commit 993b46d

Please sign in to comment.