Skip to content

Commit

Permalink
MAYA-107400 Propagate hilight dirty state
Browse files Browse the repository at this point in the history
  • Loading branch information
JGamache-autodesk committed Jan 20, 2021
1 parent 19d82e8 commit a7fdc37
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/mayaUsd/render/vp2RenderDelegate/basisCurves.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,11 @@ void HdVP2BasisCurves::_UpdateDrawItem(
*/
HdDirtyBits HdVP2BasisCurves::_PropagateDirtyBits(HdDirtyBits bits) const
{
// Visibility and selection result in highlight changes:
if ((bits & HdChangeTracker::DirtyVisibility) && (bits & DirtySelection)) {
bits |= DirtySelectionHighlight;
}

// Propagate dirty bits to all draw items.
for (const std::pair<TfToken, HdReprSharedPtr>& pair : _reprs) {
const HdReprSharedPtr& repr = pair.second;
Expand Down
5 changes: 5 additions & 0 deletions lib/mayaUsd/render/vp2RenderDelegate/mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,11 @@ HdDirtyBits HdVP2Mesh::_PropagateDirtyBits(HdDirtyBits bits) const
bits |= HdChangeTracker::DirtyExtent;
}

// Visibility and selection result in highlight changes:
if ((bits & HdChangeTracker::DirtyVisibility) && (bits & DirtySelection)) {
bits |= DirtySelectionHighlight;
}

// Propagate dirty bits to all draw items.
for (const std::pair<TfToken, HdReprSharedPtr>& pair : _reprs) {
const HdReprSharedPtr& repr = pair.second;
Expand Down

0 comments on commit a7fdc37

Please sign in to comment.