diff --git a/lib/mayaHydra/mayaPlugin/renderOverride.cpp b/lib/mayaHydra/mayaPlugin/renderOverride.cpp index 3ef360c07..c6cacc789 100644 --- a/lib/mayaHydra/mayaPlugin/renderOverride.cpp +++ b/lib/mayaHydra/mayaPlugin/renderOverride.cpp @@ -1140,6 +1140,10 @@ void MtohRenderOverride::_CreateSceneIndicesChainAfterMergingSceneIndex(const MH _leadObjectPathTracker = std::make_shared(mergingSceneIndex, _dirtyLeadObjectSceneIndex); } + if (! _wireframeColorInterfaceImp){ + _wireframeColorInterfaceImp = std::make_shared(_selection, _leadObjectPathTracker); + } + //Are we using Bounding Box display style ? if (currentDisplayStyle & MHWRender::MFrameContext::kBoundingBox){ //Insert the bounding box filtering scene index which converts geometries into a bounding box using the extent attribute @@ -1147,10 +1151,6 @@ void MtohRenderOverride::_CreateSceneIndicesChainAfterMergingSceneIndex(const MH bboxSceneIndex->addExcludedSceneRoot(MAYA_NATIVE_ROOT); // Maya native prims are already converted by OGS _lastFilteringSceneIndexBeforeCustomFiltering = bboxSceneIndex; } - - if (! _wireframeColorInterfaceImp){ - _wireframeColorInterfaceImp = std::make_shared(_selection, _leadObjectPathTracker); - } // Repr selector Scene Index _lastFilteringSceneIndexBeforeCustomFiltering = _reprSelectorSceneIndex =