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

Added test for getAllStages() versus delete. #2645

Merged
merged 3 commits into from
Oct 27, 2022

Conversation

ppt-adsk
Copy link
Collaborator

MAYA-111420 was entered to ensure that getAllStages() would not return stages whose proxy shape was deleted. This bug was fixed by previous code, so simply added a test to demonstrate the fix, with undo and redo.

@ppt-adsk ppt-adsk added the unit test Related to unit tests (both python or c++) label Oct 12, 2022
@@ -236,6 +249,7 @@ void wrapUtils()
// representation of Ufe::Path as comma-separated segments. We know that
// the USD path separator is '/'. PPT, 8-Dec-2019.
def("getStage", getStage);
def("getAllStages", getAllStages, return_value_policy<PXR_NS::TfPySequenceToList>());
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Return value policy from example Pixar USD code, e.g.
https://github.com/PixarAnimationStudios/USD/blob/dc710925675f7f58f7a37f6c18d046a687b09271/pxr/usd/usd/wrapStageCache.cpp#L63
otherwise Boost Python complains at run-time that there is no converter for a vector of stages.

pierrebai-adsk
pierrebai-adsk previously approved these changes Oct 13, 2022
@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Oct 27, 2022
@seando-adsk seando-adsk merged commit 62f3a3a into dev Oct 27, 2022
@seando-adsk seando-adsk deleted the tremblp/MAYA-111420/stage_map_vs_delete branch October 27, 2022 19:07
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 unit test Related to unit tests (both python or c++)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants