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

Fix Basis(), Basis#isOrthogonal, Basis#isEqualApprox #330

Merged
merged 5 commits into from
Jul 5, 2022
Merged

Fix Basis(), Basis#isOrthogonal, Basis#isEqualApprox #330

merged 5 commits into from
Jul 5, 2022

Conversation

richardtreier
Copy link
Contributor

basis.getRotationQuat() and basis.orthonormalized().getQuat() are currently throwing

java.lang.IllegalArgumentException: Basis must be normalized in order to be casted to a Quaternion. Use get_rotation_quat() or call orthonormalized() instead.

@richardtreier richardtreier changed the title Bugfix/basis is equal approx Fix Basis(), Basis#isOrthogonal, Basis#isEqualApprox Jun 29, 2022
@piiertho
Copy link
Member

Hello @richardtreier, thanks for the bugfix. Can you add a test to check this, so that we avoid regression ?

@richardtreier
Copy link
Contributor Author

I added some tests, however, am currently unable to run them, so I hope to test them in the pipeline.

chippmann
chippmann previously approved these changes Jun 30, 2022
Copy link
Contributor

@chippmann chippmann left a comment

Choose a reason for hiding this comment

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

LGTM
The NIT comment would be a nice to have, but I'm happy without it as well.

Thanks a lot for fixing this issue!

harness/tests/test/unit/test_coretypes_basis.gd Outdated Show resolved Hide resolved
@richardtreier
Copy link
Contributor Author

I got tests running (with godot/3.3), and test_coretypes_basis.gd passed. I am not getting any wiser from the pipeline results here, however, do they include the full tests?

@piiertho
Copy link
Member

piiertho commented Jul 5, 2022

CI is failing because you can't access PGP key to sign gradle plugin.
That's on our side.
Tests are passing :)

@piiertho piiertho merged commit 7573ef1 into utopia-rise:master Jul 5, 2022
@richardtreier richardtreier deleted the bugfix/basis-is-equal-approx branch July 6, 2022 19:25
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