Adding asset[] support to usdImaging Hydra type dispatcher
authorwhar <whar@users.noreply.github.com>
Mon, 22 Jan 2024 22:36:01 +0000 (14:36 -0800)
committerpixar-oss <pixar-oss@users.noreply.github.com>
Mon, 22 Jan 2024 23:03:26 +0000 (15:03 -0800)
(Internal change: 2311901)

pxr/usdImaging/usdImaging/dataSourceAttribute.cpp

index 713bd4ecbaf7c32c29da74d742ed7c3a9f68c310..e522972fc159d5d5067156fb68dfc2beafe1e95c 100644 (file)
@@ -54,6 +54,7 @@ static _FactoryMap _CreateFactoryMap()
     _FactoryMap map;
 
     map[SdfValueTypeNames->Asset] = _FactoryImpl<SdfAssetPath>;
+    map[SdfValueTypeNames->AssetArray] = _FactoryImpl<VtArray<SdfAssetPath>>;
     map[SdfValueTypeNames->Bool] = _FactoryImpl<bool>;
     map[SdfValueTypeNames->BoolArray] = _FactoryImpl<VtArray<bool>>;
     map[SdfValueTypeNames->Color3fArray] = _FactoryImpl<VtArray<GfVec3f>>;