Skip to content

Commit

Permalink
Don't dirty invalid paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Krystian Ligenza committed Jan 25, 2022
1 parent cc23bb5 commit 8c09ed7
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 8c09ed7

Please sign in to comment.