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

MAYA-126541 - Create a more extensive unit test for display layer support during USD to USD duplication #2866

Merged
merged 2 commits into from
Feb 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions test/lib/ufe/testDisplayLayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,16 @@ def testDisplayLayerDuplicate(self):
self._testLayerFromPath(CUBE2, self.LAYER1)
self._testLayerFromPath(XFORM2_CUBE1, self.LAYER1)

# Let's also test duplicating a node that is not the root child: XFORM1_CUBE1.
cmds.select(self.XFORM1_CUBE1)
cmds.duplicate()

# Verify that the duplicate object is in the same display layer.
layerObjs = cmds.editDisplayLayerMembers(self.LAYER1, query=True, **self.kwArgsEditDisplayLayerMembers)
XFORM1_CUBE2 = '|stage1|stageShape1,/Xform1/Cube2'
self.assertTrue(XFORM1_CUBE2 in layerObjs)
self._testLayerFromPath(XFORM1_CUBE2, self.LAYER1)

def testDisplayLayerClear(self):
cmdHelp = cmds.help('editDisplayLayerMembers')
if '-clear' not in cmdHelp:
Expand Down