Skip to content

Conversation

@ryevdokimov
Copy link
Contributor

@ryevdokimov ryevdokimov commented Jan 7, 2025

Fixes: #101172

This PR reverts part of #76052 which caused the regression by effectively disabling the order flipping for the aligned axis that allowed you to click the axis to reverse. The fix should be to redraw the aligned axis in reverse so that it still looks correct.

2025-01-06.23-41-03.mp4

@ryevdokimov ryevdokimov requested a review from a team January 7, 2025 04:44
@akien-mga akien-mga added this to the 4.4 milestone Jan 7, 2025
@Repiteo Repiteo modified the milestones: 4.4, 4.5 Feb 24, 2025
@Repiteo Repiteo added the cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release label Feb 24, 2025
@ryevdokimov ryevdokimov force-pushed the fix-viewport-rotation-aligned-axis-reversing branch from 7a20d8d to 5d501f2 Compare July 7, 2025 17:15
@Repiteo Repiteo modified the milestones: 4.5, 4.6 Sep 5, 2025
@Repiteo Repiteo added the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Sep 5, 2025
@ryevdokimov ryevdokimov force-pushed the fix-viewport-rotation-aligned-axis-reversing branch from 5d501f2 to fcdf68a Compare January 14, 2026 17:37
@ryevdokimov ryevdokimov force-pushed the fix-viewport-rotation-aligned-axis-reversing branch from fcdf68a to de29136 Compare January 14, 2026 17:49
@ryevdokimov ryevdokimov force-pushed the fix-viewport-rotation-aligned-axis-reversing branch from de29136 to c65d71a Compare January 14, 2026 17:52
Copy link
Member

@TokageItLab TokageItLab left a comment

Choose a reason for hiding this comment

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

In #76052, what I fixed was that when the camera was parallel to the axis, the axis button display itself was inverted. Specifically, in Front View, the -Z (dark blue) button was displayed, resulting in an inconsistency where the button did not correctly indicate the user's current position. So I have fixed that.

In this PR, it internally adds a flag to determine if the clicking result should be inverted in that case. So the drawing itself remains unchanged. Since this approach maintains display consistency, I think it's fine to merge this and allow axis inversion by clicking.

@akien-mga akien-mga merged commit abb90e5 into godotengine:master Jan 16, 2026
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@akien-mga akien-mga removed cherrypick:4.4 Considered for cherry-picking into a future 4.4.x release cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release labels Jan 16, 2026
@ryevdokimov ryevdokimov deleted the fix-viewport-rotation-aligned-axis-reversing branch January 20, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Viewport rotation gizmo can no longer have its current axis clicked to reverse it

5 participants