Skip to content

Commit

Permalink
Merge pull request #1930 from marktucker/dev_category_dirtybits_trans…
Browse files Browse the repository at this point in the history
…lation

Perform translations of DirtyCategories dirty bit

(Internal change: 2240320)
  • Loading branch information
pixar-oss committed Jun 30, 2022
2 parents fdce27a + 7aff972 commit 1e63367
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 1e63367

Please sign in to comment.