Skip to content

Commit

Permalink
Merge pull request #2024 from Autodesk/kxl-adsk/MAYA-110481/dont_dirt…
Browse files Browse the repository at this point in the history
…y_invalid_paths

Don't dirty invalid paths
  • Loading branch information
Krystian Ligenza authored Jan 25, 2022
2 parents 77720b6 + c43f5d8 commit 927c0a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mayaUsd/render/vp2RenderDelegate/proxyRenderDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,8 @@ void ProxyRenderDelegate::_UpdateSelectionStates()
#endif
HdChangeTracker& changeTracker = _renderIndex->GetChangeTracker();
for (auto path : *dirtyPaths) {
changeTracker.MarkRprimDirty(path, dirtySelectionBits);
if (_renderIndex->HasRprim(path))
changeTracker.MarkRprimDirty(path, dirtySelectionBits);
}

// now that the appropriate prims have been marked dirty trigger
Expand Down

0 comments on commit 927c0a7

Please sign in to comment.