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-456 : Add test for USD stage layer muting #17

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

debloip-adsk
Copy link
Collaborator

@debloip-adsk debloip-adsk commented Nov 23, 2023

This PR adds a test for HYDRA-456/HYDRA-436 where muting a USD stage layer would not be reflected in the scene index hierarchy.

@debloip-adsk debloip-adsk force-pushed the debloip/HYDRA-456/layer-muting-test branch from 370c474 to 37223cb Compare November 23, 2023 15:56
@debloip-adsk debloip-adsk force-pushed the debloip/HYDRA-456/layer-muting-test branch from 37223cb to 097a804 Compare November 23, 2023 16:00
@debloip-adsk debloip-adsk marked this pull request as ready for review November 23, 2023 16:01
@debloip-adsk debloip-adsk self-assigned this Nov 23, 2023
@debloip-adsk
Copy link
Collaborator Author

ppt-adsk
ppt-adsk previously approved these changes Nov 23, 2023
*
* @return True if the argument prim path's name matches the predicate's prim name, false otherwise.
*/
bool operator()(const HdSceneIndexBasePtr& sceneIndex, const SdfPath& primPath) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

sceneIndex argument is unused?

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, as this class is to be used as a FindPrimPredicate, whose signature includes a SceneIndex. This was indeed not explained, so I've renamed the unused scene index variable to _, mentioned that it is unused and clarified why that is.

cmds.mayaUsdLayerEditor(self.subLayer.identifier, edit=True, muteLayer=(isMuted, self.usdProxyShapeUfePathString))

def setupUsdStage(self):
import maya.cmds as cmds
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit-pick: importing maya.cmds twice, may as well factor it out.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, that import was even already factored out at the top so those were useless.

@debloip-adsk debloip-adsk added ready-for-merge Development process is finished, PR is ready for merge test labels Nov 24, 2023
@roopavr-adsk roopavr-adsk merged commit 15295b2 into dev Nov 27, 2023
10 checks passed
@roopavr-adsk roopavr-adsk deleted the debloip/HYDRA-456/layer-muting-test branch November 27, 2023 02:06
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 test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants