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 instant transformations not being committed when used in succession #96530

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

ev13bird
Copy link
Contributor

@ev13bird ev13bird commented Sep 3, 2024

Fixes: #96527.

The "Begin Translate/Rotate/Scale Transformation" family of actions weren't being committed when activated in succession without confirming or canceling.
This meant that they would not be added to the undo/redo history.

Using multiple transformations in succession should now commit the previous transformation.

fixed.mp4

@ev13bird ev13bird requested a review from a team as a code owner September 3, 2024 14:19
@AThousandShips AThousandShips added bug topic:editor topic:3d cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Sep 3, 2024
@AThousandShips AThousandShips added this to the 4.4 milestone Sep 3, 2024
@fire fire requested a review from a team September 3, 2024 16:23
@ryevdokimov
Copy link
Contributor

Related: #86930

Copy link
Contributor

@ryevdokimov ryevdokimov left a comment

Choose a reason for hiding this comment

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

Holding down the keys probably shouldn't repeatedly commit the transform.

2024-09-03.13-32-58.mp4

@ev13bird
Copy link
Contributor Author

ev13bird commented Sep 4, 2024

Good catch, thank you!

Fixed, and also disallowed starting instant transformations during a non-instant transformation (ie. when using the 3D gizmo).

@ryevdokimov
Copy link
Contributor

Good work, but unlike blender still, the object will immediately begin a transform if the keys are held down after mouse-down. Blender requires the key to be pressed again to start the process over.

@ev13bird
Copy link
Contributor Author

ev13bird commented Sep 5, 2024

Fixed, thank you!

@kleonc
Copy link
Member

kleonc commented Sep 5, 2024

Please squash commits into one, see PR workflow.

Also:
- Fix holding down keys repeatedly committing instant transformations, and disallow starting instant during non-instant
- Fix echoed inputs starting new instant transformations after clicking to confirm, and disallow left mouse release committing instant transformations
@ev13bird
Copy link
Contributor Author

ev13bird commented Sep 5, 2024

Squashed I think, thank you!

Copy link
Contributor

@ryevdokimov ryevdokimov left a comment

Choose a reason for hiding this comment

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

Looks good.

@akien-mga akien-mga merged commit f5aac22 into godotengine:master Sep 5, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

@akien-mga
Copy link
Member

Cherry-picked for 4.3.1.

@akien-mga akien-mga removed the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants