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

Allow canceling actions in Path2D editor #93087

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Jun 12, 2024

Right click to cancel current action:

godot.windows.editor.dev.x86_64_uOHsgU1PfO.mp4

I also reworked ACTION_MOVING_POINT to only create undo action once accepted (which is how it should've been implemented from the start 🤦‍♂️)

This fixes some bugs:

@KoBeWi KoBeWi added this to the 4.3 milestone Jun 12, 2024
@KoBeWi KoBeWi requested a review from a team as a code owner June 12, 2024 13:26
Comment on lines -601 to -607
canvas_item_editor = nullptr;
mirror_handle_angle = true;
mirror_handle_length = true;
on_edge = false;

mode = MODE_EDIT;
action = ACTION_NONE;
Copy link
Member Author

Choose a reason for hiding this comment

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

Bonus cleanup.

@akien-mga akien-mga merged commit 680e489 into godotengine:master Jun 13, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the path_to_less_bugs branch June 13, 2024 15:51
@akien-mga akien-mga changed the title Allow cancelling actions in Path2D editor Allow canceling actions in Path2D editor Aug 14, 2024
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.

2 participants