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

[al] When updating a transform via a quat, test for equivalence in quat space #453

Conversation

robthebloke
Copy link
Contributor

If you have a transform that is a +270 rotation around the x axis, If this gets set as a quat the euler equivalents would be a -90 degree rotation in x. Previously the code would test to see if the rotations had changed by comparing euler values. This was leading to some pointless rotations being written as overs into the usd stage. By comparing the values as quats instead, the equivalence check now works correctly, and the pointless overs no longer get generated.

@robthebloke robthebloke added bug Something isn't working al Related to AnimalLogic plugin labels Apr 22, 2020
@robthebloke robthebloke changed the title When updating a transform via a quat, test for equivalence in quat space [al] When updating a transform via a quat, test for equivalence in quat space Apr 22, 2020
@kxl-adsk kxl-adsk merged commit 30e3322 into Autodesk:dev Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
al Related to AnimalLogic plugin bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants