Skip to content

Commit

Permalink
HYDRA-1132 : Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
debloip-adsk committed Sep 3, 2024
1 parent 6e454f5 commit 712db34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mayaHydra/hydraExtensions/sceneIndex/registration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ class PathInterfaceSceneIndex : public Fvp::PathInterfaceSceneIndexBase
primPath = primPath.AppendChild(TfToken(secondSegment.components()[iSecondSegment].string()));
}
else if (iSecondSegment == secondSegment.size() - 1) {
// Point instancing : instance selection. The path should end with a number corresponding to the selected instance,
// and the remainder of the path points to the point instancer.
if (TF_VERIFY(lastComponentIsNumeric, "Expected number as final UFE path component but got an invalid path instead.")) {
HdSceneIndexPrim instancerPrim = GetInputSceneIndex()->GetPrim(primPath);
HdInstancerTopologySchema instancerTopologySchema = HdInstancerTopologySchema::GetFromParent(instancerPrim.dataSource);
Expand Down

0 comments on commit 712db34

Please sign in to comment.