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

Do not change a node unique name to the same name #78925

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

theraot
Copy link
Contributor

@theraot theraot commented Jul 2, 2023

Fixes #78922
Fixes #79085

The code already attempted to get a node by the new name to check if there was a different existing node with a unique name matching the name. I have added a check to see if the node it finds is the same being renamed, in which case the operation is aborted silently.

@KoBeWi
Copy link
Member

KoBeWi commented Jul 6, 2023

If you rename node to an empty name, it will become blank:

godot.windows.editor.dev.x86_64_HM839ONQmu.mp4

Only happens with unique name nodes. You probably need to restore previous text.

@akien-mga akien-mga requested a review from KoBeWi July 7, 2023 09:28
@akien-mga akien-mga added the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Jul 7, 2023
@akien-mga akien-mga merged commit a2604ff into godotengine:master Jul 7, 2023
13 checks passed
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Jul 10, 2023
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.1.1.

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.

Renaming unique node to the same name results in an error dialog Renaming unique node name to the same name
5 participants