Skip to content

Commit

Permalink
[hd] HdRenderIndex::GetSceneDelegateAndInstancerIds should fallback t…
Browse files Browse the repository at this point in the history
…o backend

emulation scene delegate when a prim doesn't contain a "delegate" data source.

(Internal change: 2275328)
  • Loading branch information
clach authored and pixar-oss committed May 15, 2023
1 parent ac1d1e6 commit 91101b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pxr/imaging/hd/renderIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1933,7 +1933,8 @@ HdRenderIndex::GetSceneDelegateAndInstancerIds(SdfPath const &id,
}
}
} else {
return false;
// fallback value is the back-end emulation delegate
*delegateId = _siSd->GetDelegateID();
}
} else {
*delegateId = rprimInfo.sceneDelegate->GetDelegateID();
Expand Down

0 comments on commit 91101b5

Please sign in to comment.