OpenUSD
OpenUSD copied to clipboard
Update QuadSceneIndex Example
Description of Change(s)
The custom SceneIndex example from "Hydra 2.0 Getting Started Guide" (QuadSceneIndex) seems out of date. I suggest some update/fixes in this PR.
Fixes Issue(s)
- Replace the
BuildRetainedcalls (currently deprecated) in favour ofBuilder().Build(). - Fix the signature of the
GetChildPrimPathsmethod (missingconst). - Fix a typo for one of the return instruction of
GetChildPrimPaths(misplaced semicolon).
Suggestion(s)
- Remove the
Populatemethod from the QuadSceneIndex since it seems unnecessary for this simple example. - Create local
usingin order to ease the readability.- e.g using
_BoolDataSource = HdRetainedTypedSampledDataSource<bool>;gives_BoolDataSource::New(false).
- e.g using
- [x] I have verified that all unit tests pass with the proposed changes
- [x] I have submitted a signed Contributor License Agreement
Filed as internal issue #USD-9793
✅ Signed CLA on file
/AzurePipelines run
Azure Pipelines successfully started running 1 pipeline(s).