Skip to content

Commit

Permalink
Merge pull request #1838 from aloysbaillet/fix-geomsubset-material-dirty
Browse files Browse the repository at this point in the history
Fixed missing material dependency on GeomSubSet

(Internal change: 2229909)
  • Loading branch information
pixar-oss committed May 9, 2022
2 parents 9c5c41d + c83265f commit a9787c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pxr/usdImaging/usdImaging/meshAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ UsdImagingMeshAdapter::Populate(UsdPrim const& prim,
index->GetMaterialAdapter(materialPrim);
if (materialAdapter) {
materialAdapter->Populate(materialPrim, index, nullptr);
// We need to register a dependency on the material prim so
// that geometry is updated when the material is
// (specifically, DirtyMaterialId).
// XXX: Eventually, it would be great to push this into hydra.
index->AddDependency(cachePath, materialPrim);
}
}
}
Expand Down

0 comments on commit a9787c3

Please sign in to comment.