Skip to content

Commit

Permalink
Fixed missing material dependency on GeomSubSet
Browse files Browse the repository at this point in the history
  • Loading branch information
aloysbaillet committed Apr 20, 2022
1 parent 77fa6ca commit c83265f
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 c83265f

Please sign in to comment.