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-105577 MAYA-105597 Improve accessor plug name and cleanup tests #838

Merged
merged 4 commits into from
Oct 20, 2020

Conversation

kxl-adsk
Copy link

Some polishing that was raised in #594.

Commit bad3130 addresses #594 (comment)
Commit 7e951ed is cleaning up code duplication in unit test #594 (comment)

@kxl-adsk kxl-adsk added proxy Related to base proxy shape workflows Related to in-context workflows labels Oct 16, 2020
@@ -150,6 +151,16 @@ _FindOrCreateMayaNumericAttr(
attr.setUsedAsColor(true);
}

const unsigned int numChildren = MFnCompoundAttribute(attrObj).numChildren();
if(numChildren < 4u) {
Copy link
Collaborator

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 :)

Copy link
Author

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.

Copy link
Author

Choose a reason for hiding this comment

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

Done - 0dd8d8a

@@ -55,6 +55,26 @@ def selectPath(path, replace=False):
else:
ufeSelectCmd.append(sceneItem)

def makeUfePath(dagPath, sdfPath=None):
Copy link
Collaborator

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!

Copy link
Author

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?

Copy link
Collaborator

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!

Copy link
Author

Choose a reason for hiding this comment

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

Done - 0dd8d8a

@kxl-adsk kxl-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Oct 19, 2020
@kxl-adsk kxl-adsk merged commit 9481327 into dev Oct 20, 2020
@kxl-adsk kxl-adsk deleted the kxl-adsk/MAYA-105577/improve_accessor_plug_name branch October 20, 2020 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proxy Related to base proxy shape ready-for-merge Development process is finished, PR is ready for merge workflows Related to in-context workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants