-
Notifications
You must be signed in to change notification settings - Fork 203
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-105577 MAYA-105597 Improve accessor plug name and cleanup tests #838
MAYA-105577 MAYA-105597 Improve accessor plug name and cleanup tests #838
Conversation
@@ -150,6 +151,16 @@ _FindOrCreateMayaNumericAttr( | |||
attr.setUsedAsColor(true); | |||
} | |||
|
|||
const unsigned int numChildren = MFnCompoundAttribute(attrObj).numChildren(); | |||
if(numChildren < 4u) { |
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.
This can't be right, you must be off by one. If your tests didn't catch this, then I guess we're missing a bit of coverage :)
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.
Ehh...late-night coding. Of course, it can't be right.
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.
Done - 0dd8d8a
test/testUtils/ufeUtils.py
Outdated
@@ -55,6 +55,26 @@ def selectPath(path, replace=False): | |||
else: | |||
ufeSelectCmd.append(sceneItem) | |||
|
|||
def makeUfePath(dagPath, sdfPath=None): |
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.
Quite oddly named, I would say... I would have expected makeUfePath to return a Ufe.Path, not a scene item!
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.
Right. Any suggestions for the name?
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.
createUfeSceneItem(), createUfeItem(), makeUfeSceneItem(), makeUfeItem(). Take your pick!
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.
Done - 0dd8d8a
Some polishing that was raised in #594.
Commit bad3130 addresses #594 (comment)
Commit 7e951ed is cleaning up code duplication in unit test #594 (comment)