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

HYDRA-686 : Fix manual lifetime management of MayaHydraSceneIndex's adapters #161

Merged

Conversation

debloip-adsk
Copy link
Collaborator

No description provided.

TF_AXIOM(MayaHydra::PickHandlerRegistry::Instance().Unregister(_rprimPath));
}

void MayaHydraSceneIndex::RemoveCallbacksAndDeleteAdapters()
Copy link
Collaborator Author

@debloip-adsk debloip-adsk Aug 27, 2024

Choose a reason for hiding this comment

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

Moved the body of RemoveCallbacksAndDeleteAdapters into the destructor itself, so we no longer need to make that manual call to cleanup the MayaHydraSceneIndex.

@debloip-adsk
Copy link
Collaborator Author

No test added; the original issue was already detected by existing tests, and there is also already a test that switches between MayaHydra and VP2 to test MayaHydra setup and cleanup behaviors.

lanierd-adsk
lanierd-adsk previously approved these changes Aug 28, 2024
@debloip-adsk debloip-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Sep 3, 2024
@debloip-adsk debloip-adsk removed the ready-for-merge Development process is finished, PR is ready for merge label Sep 3, 2024
@debloip-adsk debloip-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Sep 4, 2024
@debloip-adsk debloip-adsk merged commit 9281635 into dev Sep 6, 2024
10 checks passed
@debloip-adsk debloip-adsk deleted the debloip/HYDRA-686/fix-adapters-manual-lifetime-management branch September 6, 2024 18:09
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