Skip to content

Commit

Permalink
Merge pull request #2521 from marktucker/dev_instance_asset_primvars
Browse files Browse the repository at this point in the history
Support asset primvars on native instances.

(Internal change: 2291825)
  • Loading branch information
pixar-oss committed Aug 22, 2023
2 parents 917a653 + 7ce7824 commit 1c0c4d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pxr/usdImaging/usdImaging/instanceAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,9 @@ UsdImagingInstanceAdapter::_ComputeInheritedPrimvar(UsdPrim const& instancer,
} else if (dv.IsHolding<std::string>()) {
return _ComputeInheritedPrimvar<std::string>(
instancer, primvarName, result, time);
} else if (dv.IsHolding<SdfAssetPath>()) {
return _ComputeInheritedPrimvar<SdfAssetPath>(
instancer, primvarName, result, time);
} else {
TF_WARN("Native instancing: unrecognized inherited primvar type '%s' "
"for primvar '%s'",
Expand Down

0 comments on commit 1c0c4d5

Please sign in to comment.