@@ -213,7 +213,7 @@ void writeSetInternal( const pxr::UsdPrim &prim, const pxr::TfToken &name, const
213213}
214214
215215template <typename SchemaType>
216- IECore::PathMatcher readSchemaTypeSet ( const pxr::UsdPrim &prim )
216+ IECore::PathMatcher descendantsWithType ( const pxr::UsdPrim &prim )
217217{
218218 IECore::PathMatcher result;
219219 for ( const auto &descendant : prim.GetDescendants () )
@@ -226,13 +226,13 @@ IECore::PathMatcher readSchemaTypeSet( const pxr::UsdPrim &prim )
226226 return result;
227227}
228228
229- template <typename SchemaType >
230- IECore::PathMatcher readAPISchemaSet ( const pxr::UsdPrim &prim )
229+ template <typename APIType >
230+ IECore::PathMatcher descendantsWithAPI ( const pxr::UsdPrim &prim )
231231{
232232 IECore::PathMatcher result;
233233 for ( const auto &descendant : prim.GetDescendants () )
234234 {
235- if ( descendant.HasAPI <SchemaType >() )
235+ if ( descendant.HasAPI <APIType >() )
236236 {
237237 result.addPath ( USDScene::fromUSD ( descendant.GetPath () ) );
238238 }
@@ -241,11 +241,11 @@ IECore::PathMatcher readAPISchemaSet( const pxr::UsdPrim &prim )
241241}
242242
243243boost::container::flat_map<IECore::InternedString, IECore::PathMatcher (*)( const pxr::UsdPrim & )> g_schemaTypeSetReaders = {
244- { " __cameras" , readSchemaTypeSet <pxr::UsdGeomCamera> },
244+ { " __cameras" , descendantsWithType <pxr::UsdGeomCamera> },
245245#if PXR_VERSION >= 2111
246- { " __lights" , readAPISchemaSet <pxr::UsdLuxLightAPI> },
246+ { " __lights" , descendantsWithAPI <pxr::UsdLuxLightAPI> },
247247#endif
248- { " usd:pointInstancers" , readSchemaTypeSet <pxr::UsdGeomPointInstancer> }
248+ { " usd:pointInstancers" , descendantsWithType <pxr::UsdGeomPointInstancer> }
249249};
250250
251251IECore::PathMatcher readSetInternal ( const pxr::UsdPrim &prim, const pxr::TfToken &name, bool includeDescendantSets, const Canceller *canceller )
0 commit comments