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: upon entering sketch mode, axis do not rotate. #4572

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

nadr0
Copy link
Collaborator

@nadr0 nadr0 commented Nov 25, 2024

Issue

The axis for sketch mode can have a rotation applied when entering the sketch mode which is wrong.

How to recreate the bug

Do not look perpendicular to your sketch plane then enter the sketch mode on that plane. Some rotation will be applied

Fix

Set the orientation from the cam settings directly to the camera instead of recomputing a new up vector.
Turns out we can use the up vector from the camera settings that is returned instead of hard coding it to <0,1,0>.

Video description

2024-11-25.14-06-30.mp4

Copy link

qa-wolf bot commented Nov 25, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Nov 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Nov 26, 2024 7:09pm

Copy link
Collaborator

@franknoirot franknoirot left a comment

Choose a reason for hiding this comment

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

Tested locally and it works like a charm.

@nadr0 nadr0 merged commit 7729395 into main Dec 4, 2024
26 checks passed
@nadr0 nadr0 deleted the nadro/adhoc/enter-sketch-camera-orientation-fix branch December 4, 2024 21:57
jessfraz pushed a commit that referenced this pull request Dec 5, 2024
* fix: upon entering sketch mode, axis do not rotate.

* fix: camera settings has the up vector to set, this should now work
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.

[BUG]: Camera orientation jumps after entering sketch mode, rolls random amount about forward vector
2 participants