Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved isolate select scene index creation to avoid losing isolate sel… #197

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

ppt-adsk
Copy link
Collaborator

@ppt-adsk ppt-adsk commented Nov 6, 2024

…ection.

@ppt-adsk ppt-adsk requested a review from lanierd-adsk November 6, 2024 20:04
@@ -1096,6 +1096,22 @@ void MtohRenderOverride::_InitHydraResources(const MHWRender::MDrawContext& draw
_dirtyLeadObjectSceneIndex = MAYAHYDRA_NS::MhDirtyLeadObjectSceneIndex::New(_inputSceneIndexOfFilteringSceneIndicesChain);
_inputSceneIndexOfFilteringSceneIndicesChain = _dirtyLeadObjectSceneIndex;

#ifdef MAYA_HAS_VIEW_SELECTED_OBJECT_API
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved from _CreateSceneIndicesChainAfterMergingSceneIndex(). The isolate select scene index is independent of display style and therefore does not need to be re-created on shading change (e.g. bounding box mode).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the fix, the test fails. With the fix, the test passes.

@ppt-adsk ppt-adsk self-assigned this Nov 7, 2024
@ppt-adsk ppt-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Nov 7, 2024
@lilike-adsk lilike-adsk merged commit c7d72a2 into dev Nov 8, 2024
10 checks passed
@lilike-adsk lilike-adsk deleted the tremblp/HYDRA-1277/isolate_select_vs_bbox branch November 8, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants