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

A piece of PR183 - approximate equality checks #294

Merged
merged 1 commit into from Feb 24, 2020
Merged

A piece of PR183 - approximate equality checks #294

merged 1 commit into from Feb 24, 2020

Conversation

elenadBlueSky
Copy link
Contributor

Since the full pr/animationMissingAfterMayaFileSaveReopen was too controversial, breaking out some pieces. This piece has the part that everyone agreed was safe to merge in - approximate equality checks of new values against currently set values to determine whether or not new values need to be saved. Plus a couple of changes that address what looked like small oversights.
(This change alone fixes the problem where we bring in a usd file with a sphere, turn on the Move To manipulator, and then, via python calls, select the sphere, set the sphere's rotateZ to 45 degrees, unselect the sphere, reselect the sphere and the rotation (and usd "over" that sets it) is inexplicably reset to 0,0,0.)

…e pieces.

This piece has the part that everyone agreed was safe to merge in - approximate
equality checks of new values against currently set values to determine whether
or not new values need to be saved.
@kxl-adsk
Copy link

Added @elrond79 and @murphyeoin as reviewers since they were providing feedback on #183

Copy link
Contributor

@pmolodo pmolodo 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.. thanks!

@@ -1119,6 +1119,7 @@ void TransformationMatrix::initialiseToPrim(bool readFromPrim, Scope* transformN
MPlug(transformNode->thisMObject(), MPxTransform::shearXZ).setValue(tempShear.y);
MPlug(transformNode->thisMObject(), MPxTransform::shearYZ).setValue(tempShear.z);
m_shearTweak[0] = m_shearTweak[1] = m_shearTweak[2] = 0;
m_shearFromUsd = tempShear;
Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally, this would be on it's own PR or at least commit - both because it's obviously different than the rest of the changes, and because it seems like an important enough bug fix to deserve splitting out.

Having said that - this does seem like a needed fix, and you've already been good enough to split things out into two separate commits, so I'm not going to hold things up over this.

@kxl-adsk kxl-adsk requested a review from robthebloke February 21, 2020 21:02
@kxl-adsk kxl-adsk merged commit ba5025d into Autodesk:dev Feb 24, 2020
@pilarmolinalopez pilarmolinalopez deleted the pr/approxEqualityChecks branch June 23, 2020 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants