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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

ppt-adsk
Copy link
Collaborator

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

…ection.

@@ -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
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.

2 participants