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

Rescue orphan nodes in inherited scenes #60893

Merged
merged 1 commit into from
May 9, 2022

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented May 8, 2022

Simple fix #24817

When a node loses its parent, it will be instead added under root node, with name changed to Old@Parent@Path@Node.
godot windows tools 64_2GwvhzchS7
Adding some warning dialog would be a bit complicated, as the change is done entirely inside PackedScene. A warning is printed in the output though. This at least preserves the data, so should be sufficient solution.

Verified

This commit was signed with the committer’s verified signature.
Calinou Hugo Locurcio
@KoBeWi KoBeWi added enhancement topic:editor cherrypick:3.x Considered for cherry-picking into a future 3.x release labels May 8, 2022
@KoBeWi KoBeWi added this to the 4.0 milestone May 8, 2022
@akien-mga akien-mga merged commit 9923179 into godotengine:master May 9, 2022
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the node_rescue branch May 9, 2022 12:58
@akien-mga
Copy link
Member

Cherry-picked for 3.5.

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.

Godot should prompt a dialog when an inherited scene has orphan nodes due to a change in the parent scene
2 participants