Skip to content

Commit

Permalink
Merge pull request #1091 from Autodesk/t_gamaj/MAYA-107400/propagate_…
Browse files Browse the repository at this point in the history
…hilight_dirty_state

MAYA-107400 Propagate hilight dirty state
  • Loading branch information
Krystian Ligenza committed Jan 21, 2021
2 parents daacbab + a7fdc37 commit 70e3bbd
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 @@ -1390,6 +1390,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 @@ -643,6 +643,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 70e3bbd

Please sign in to comment.