Build: USD: Small fix to allow compiling against both 23.11 and 24.05
The API in question was modified as part of [1] several months ago. The
example scene in the PR now displays correctly with both USD versions.
[1] 7469ddd8bd
Pull Request: https://projects.blender.org/blender/blender/pulls/121636
This commit is contained in:
committed by
Jesse Yurkovich
parent
12bf5ff7d4
commit
2db96ee8ca
@@ -52,7 +52,7 @@ void InstancerData::update() {}
|
||||
pxr::VtValue InstancerData::get_data(pxr::TfToken const &key) const
|
||||
{
|
||||
ID_LOG(3, "%s", key.GetText());
|
||||
if (key == pxr::HdInstancerTokens->instanceTransform) {
|
||||
if (key == pxr::HdInstancerTokens->instanceTransforms) {
|
||||
return pxr::VtValue(mesh_transforms_);
|
||||
}
|
||||
return pxr::VtValue();
|
||||
@@ -75,7 +75,7 @@ pxr::HdPrimvarDescriptorVector InstancerData::primvar_descriptors(
|
||||
pxr::HdPrimvarDescriptorVector primvars;
|
||||
if (interpolation == pxr::HdInterpolationInstance) {
|
||||
primvars.emplace_back(
|
||||
pxr::HdInstancerTokens->instanceTransform, interpolation, pxr::HdPrimvarRoleTokens->none);
|
||||
pxr::HdInstancerTokens->instanceTransforms, interpolation, pxr::HdPrimvarRoleTokens->none);
|
||||
}
|
||||
return primvars;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user