Skip to content

Commit

Permalink
Fix compilation with older versions of USD Autodesk#2234
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienblor committed Feb 19, 2025
1 parent 90c08b2 commit 14e3adf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions libs/render_delegate/render_delegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,15 @@ inline const TfTokenVector& _SupportedBprimTypes(bool ownsUniverse)
{
// For the hydra render delegate plugin, when we own the arnold universe, we don't want
// to support the render settings primitives as Bprims since it will be passed through SetRenderSettings
if (ownsUniverse) {
static const TfTokenVector r{HdPrimTypeTokens->renderBuffer, _tokens->openvdbAsset};
return r;
} else {
#if PXR_VERSION >= 2208
if (!ownsUniverse) {
static const TfTokenVector r{HdPrimTypeTokens->renderBuffer, _tokens->openvdbAsset, HdPrimTypeTokens->renderSettings};
return r;
} else
#endif
{
static const TfTokenVector r{HdPrimTypeTokens->renderBuffer, _tokens->openvdbAsset};
return r;
}
}

Expand Down

0 comments on commit 14e3adf

Please sign in to comment.