Skip to content

Commit

Permalink
Fix build issues in older versions of USD (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienblor authored Nov 3, 2022
1 parent 8c8d36c commit b0f7860
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions render_delegate/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1569,15 +1569,21 @@ bool HdArnoldGetComputedPrimvars(
const auto computedPrimvars = delegate->GetExtComputationPrimvarDescriptors(id, interpolation);
for (const auto& primvar : computedPrimvars) {
if (HdChangeTracker::IsPrimvarDirty(dirtyBits, id, primvar.name)) {
#if PXR_VERSION >= 2105
if (primvar.name == HdTokens->points)
pointsPrimvars.emplace_back(primvar);
else
#endif
{

dirtyPrimvars.emplace_back(primvar);
}
}
}
}

bool changed = false;
#if PXR_VERSION >= 2105
if (pointsSample && !pointsPrimvars.empty()) {
HdExtComputationUtils::SampledValueStore<HD_ARNOLD_MAX_PRIMVAR_SAMPLES> valueStore;
const size_t maxSamples = HD_ARNOLD_MAX_PRIMVAR_SAMPLES;
Expand All @@ -1592,6 +1598,7 @@ bool HdArnoldGetComputedPrimvars(
*pointsSample = itComputed->second;
}
}
#endif

if (!dirtyPrimvars.empty()) {

Expand Down

0 comments on commit b0f7860

Please sign in to comment.