Skip to content

Commit

Permalink
HYDRA-747 : Filter out child prim paths
Browse files Browse the repository at this point in the history
  • Loading branch information
debloip-adsk committed Jan 8, 2024
1 parent 0646be6 commit 23ee144
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,14 @@ SdfPathVector FilteringSceneIndexExample::GetChildPrimPaths(const SdfPath& primP
return SdfPathVector();
}

return IsFiltered(primPath) ? SdfPathVector() : _GetInputSceneIndex()->GetChildPrimPaths(primPath);
SdfPathVector childPaths = _GetInputSceneIndex()->GetChildPrimPaths(primPath);
childPaths.erase(
std::remove_if(
childPaths.begin(),
childPaths.end(),
[this](const SdfPath& childPath) -> bool { return IsFiltered(childPath); }),
childPaths.end());
return IsFiltered(primPath) ? SdfPathVector() : childPaths;
}

void FilteringSceneIndexExample::_PrimsAdded(
Expand Down

0 comments on commit 23ee144

Please sign in to comment.