From 712db3447f8a465239d371a99ae97eba3349abd2 Mon Sep 17 00:00:00 2001 From: debloip Date: Tue, 3 Sep 2024 18:37:05 -0400 Subject: [PATCH] HYDRA-1132 : Add comment --- lib/mayaHydra/hydraExtensions/sceneIndex/registration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mayaHydra/hydraExtensions/sceneIndex/registration.cpp b/lib/mayaHydra/hydraExtensions/sceneIndex/registration.cpp index 80845b661..57f44c121 100644 --- a/lib/mayaHydra/hydraExtensions/sceneIndex/registration.cpp +++ b/lib/mayaHydra/hydraExtensions/sceneIndex/registration.cpp @@ -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);