-
-
Notifications
You must be signed in to change notification settings - Fork 577
Consistant colours for axes #2330
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
Consistant colours for axes #2330
Conversation
!build |
|
I think you misinterpreted the intention here. The axis-constrained Shift dragging should become blue and green to match the compass rose dragging, not removing all colors from the compass rose. Could you please revert this and try that instead? |
Changing the colors of the GRS visualizations will not be necessary. Just the axis-constraint lines when dragging with Shift held. |
@Keavon can you review the PR? |
Thanks, your screenshot looks good. It might be a few days before I can get back to doing code reviews since I tend to do similar things (like landing PRs) in batches. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution; this works well apart from the crash.
|
||
let extension = tool_data.drag_current - tool_data.drag_start; | ||
let origin = compass_center - extension; | ||
let viewport_diagonal = input.viewport_bounds.size().length(); | ||
|
||
let edge = DVec2::from_angle(snapped_angle) * viewport_diagonal; | ||
let perp = edge.perp(); | ||
let edge_dot_horizontal = edge.normalize().dot(DVec2::X).abs(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This crashes when the user moves their mouse exactly over the starting position in debug mode.
drag_crash.mp4
aa7ff13
to
e11b57a
Compare
Closing this out as stale. |
Closes #2311
