-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
370c474
to
37223cb
Compare
37223cb
to
097a804
Compare
* | ||
* @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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sceneIndex argument is unused?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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.