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

Change how the active 3D view is retrieved in the test #2581

Merged
merged 1 commit into from
Sep 8, 2022

Conversation

pierrebai-adsk
Copy link
Collaborator

Otherwise, the test failed when run locally. The new method to retrieve the 3D view is more robust.

Otherwise, the test failed when run locally. The new method to retrieve the 3D view is more robust.
@@ -69,8 +69,7 @@ def setUp(self):
cmds.refresh()

# Get the viewport widget.
self._view = OMUI.M3dView()
OMUI.M3dView.getM3dViewFromModelPanel(self._panel, self._view)
self._view = OMUI.M3dView().active3dView()
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does this change? The code seems to be setting the panel to a persp view and then getting the viewport from it. Now you are using the active viewport. Is that still the one with persp camera?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, there is only on viewport open at that point. The old code would not return the correct panel when I ran it locally.

@seando-adsk seando-adsk added the unit test Related to unit tests (both python or c++) label Sep 7, 2022
@seando-adsk seando-adsk changed the title MAYA-000000 change how the active 3D view is retrieved in the test Change how the active 3D view is retrieved in the test Sep 7, 2022
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Sep 7, 2022
@seando-adsk seando-adsk merged commit 5cd0b00 into dev Sep 8, 2022
@seando-adsk seando-adsk deleted the t_bailp/MAYA-000000/fix-proxy-shape-test branch September 8, 2022 17:31
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.

3 participants