Skip to content

Commit

Permalink
MAYA-000000 change how the active 3D view is retrieved in the test
Browse files Browse the repository at this point in the history
Otherwise, the test failed when run locally. The new method to retrieve the 3D view is more robust.
  • Loading branch information
pierrebai-adsk committed Sep 6, 2022
1 parent 2e54853 commit 049bab0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
self._viewWidget = wrapInstance(int(self._view.widget()), QWidget)

def tearDown(self):
Expand Down

0 comments on commit 049bab0

Please sign in to comment.