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-123462 usdEditAsMaya set doesn't disappear when cancelling editi… #2397

Merged
merged 2 commits into from
Jun 6, 2022

Conversation

boudrey
Copy link
Contributor

@boudrey boudrey commented Jun 3, 2022

…ng as Maya

Fix crash related to unsupported !invert!

  • remove duplicated declaration of Bool

…ng as Maya

Fix crash related to unsupported !invert!
+ remove duplicated declaration of Bool
@boudrey boudrey requested a review from JGamache-autodesk June 3, 2022 15:38
@@ -120,9 +132,11 @@ Ufe::Attribute::Ptr UsdAttributes::attribute(const std::string& name)
};

#undef ADD_UFE_USD_CTOR
auto ctorIt = ctorMap.find(newAttrType);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Avoid crash when type is not found like it was before.

@@ -108,7 +121,6 @@ Ufe::Attribute::Ptr UsdAttributes::attribute(const std::string& name)
ADD_UFE_USD_CTOR(Float3),
ADD_UFE_USD_CTOR(Double3),
ADD_UFE_USD_CTOR(Generic),
ADD_UFE_USD_CTOR(Bool),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bool was added twice.

Copy link
Collaborator

@JGamache-autodesk JGamache-autodesk left a comment

Choose a reason for hiding this comment

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

Looks good to me.

{
PXR_NS::TfToken tok(name);
bool isInverseOp = _IsInverseOp(tok);
static size_t invertPrefixLen = strlen(invertPrefix);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I rather like
static constexpr size_t invertPrefixLen(sizeof(invertPrefix)/sizeof(invertPrefix[0]));
for fully const strings.

@boudrey boudrey added the ready-for-merge Development process is finished, PR is ready for merge label Jun 6, 2022
@seando-adsk seando-adsk added the ufe Related to UFE component in Maya label Jun 6, 2022
@seando-adsk seando-adsk merged commit 6e48ec2 into dev Jun 6, 2022
@seando-adsk seando-adsk deleted the boudrey/MAYA-123462/invert branch June 6, 2022 21:11
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 ufe Related to UFE component in Maya
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants