Skip to content

Commit

Permalink
Merge pull request #4069 from Autodesk/lanierd/HYDRA-1347-REVERT
Browse files Browse the repository at this point in the history
HYDRA-1347 : Fully revert the changes from PR #4060.
  • Loading branch information
seando-adsk authored Jan 14, 2025
2 parents 775d5de + a8fbc3b commit ab0c4bf
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions lib/mayaUsd/render/vp2RenderDelegate/proxyRenderDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,20 +542,6 @@ bool _DrawItemFilterPredicate(const SdfPath& rprimID, const void* predicateParam

bool _longDurationRendering = false;

bool _IsVP2RenderDelegate()
{
bool isVP2RenderDelegate = true;
MHWRender::MRenderer* theRenderer = MHWRender::MRenderer::theRenderer();
if (theRenderer) {
const MString overrideName = theRenderer->activeRenderOverride();
isVP2RenderDelegate
= (0 == overrideName.length()); // Having a non empty render override name means we are
// not using the VP2 render delegate
}

return isVP2RenderDelegate;
}

} // namespace

//! \brief Draw classification used during plugin load to register in VP2
Expand Down Expand Up @@ -634,9 +620,6 @@ bool ProxyRenderDelegate::requiresUpdate(

void ProxyRenderDelegate::_ClearRenderDelegate()
{
if (!_isInitialized())
return;

// The order of deletion matters. Some orders cause crashes.

_sceneDelegate.reset();
Expand Down Expand Up @@ -1241,12 +1224,6 @@ void ProxyRenderDelegate::update(MSubSceneContainer& container, const MFrameCont
if (_proxyShapeData->ProxyShape() == nullptr)
return;

const bool isVP2RenderDelegate = _IsVP2RenderDelegate();
if (!isVP2RenderDelegate) {
_ClearRenderDelegate(); // Free resources if we are not using VP2 render delegate
return;
}

// If the rendering was flagged as possibly taking a long time,
// show the wait cursor.
//
Expand Down

0 comments on commit ab0c4bf

Please sign in to comment.