Skip to content

Commit

Permalink
Perform dirty bit translations so that changes to rprim category
Browse files Browse the repository at this point in the history
membership result in sync calls when using the UsdImaging scene delegate
with the scene index emulation layer.
  • Loading branch information
marktucker committed Jun 30, 2022
1 parent e097b79 commit 7aff972
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pxr/imaging/hd/dirtyBitsTranslator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ HdDirtyBitsTranslator::RprimDirtyBitsToLocatorSet(TfToken const& primType,
}
}

if (bits & HdChangeTracker::DirtyCategories) {
set->append(HdCategoriesSchema::GetDefaultLocator());
}

if (primType == HdPrimTypeTokens->cone) {
if (bits & HdChangeTracker::DirtyPrimvar) {
set->append(HdConeSchema::GetDefaultLocator());
Expand Down Expand Up @@ -468,6 +472,12 @@ HdDirtyBitsTranslator::RprimLocatorSetToDirtyBits(
}
}

// Locator (*): categories

if (_FindLocator(HdCategoriesSchema::GetDefaultLocator(), end, &it)) {
bits |= HdChangeTracker::DirtyCategories;
}

if (primType == HdPrimTypeTokens->cone) {
// Locator (*): cone
if (_FindLocator(HdConeSchema::GetDefaultLocator(), end, &it)) {
Expand Down

0 comments on commit 7aff972

Please sign in to comment.