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-122134 bad variant cache with empty pref #2200

Merged
merged 2 commits into from
Apr 6, 2022

Conversation

pierrebai-adsk
Copy link
Collaborator

Fix that caching to USD fails when the Maya prefs are reset.
Also add word-wrap to the descriptions UI.

Fix that caching to USD fails when the Maya prefs are reset.
Also add word-wrap to the descriptions UI.
@@ -116,7 +116,7 @@ proc fileOptionsTabPage(string $tabLayout)
setParent $topForm;
frameLayout -label `getMayaUsdLibString("kMayaRefDescription")`;
columnLayout -adjustableColumn true;
text -align "left" -label `getMayaUsdLibString("kMayaRefAddToUSDDescription")`;
text -align "left" -wordWrap 1 -label `getMayaUsdLibString("kMayaRefAddToUSDDescription")`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't wordWrap flag take a boolean? Using a 1 makes it seems like its some kind of word wrap value choice.

Copy link
Collaborator Author

@pierrebai-adsk pierrebai-adsk Mar 18, 2022

Choose a reason for hiding this comment

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

I thought MEL did not have a boolean type as I've seen int, 0 and 1 used in most places. It worked with that 1. Just searched< yeah, true/false... I can change it. Although, half the usages I've seen in maya pass 0 or 1 there.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No wonder it is confusing :) I guess it is all for historical reasons. Putting true here does cost much, so I did.

@pierrebai-adsk pierrebai-adsk added the adsk Related to Autodesk plugin label Mar 18, 2022
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Mar 21, 2022
@seando-adsk seando-adsk merged commit 4035ca4 into dev Apr 6, 2022
@seando-adsk seando-adsk deleted the t_bailp/MAYA-122134/cache-variant-no-pref branch April 6, 2022 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants