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

Changing the root of an scene that's instanced somewhere else deletes the whole scene, other than the root #35305

Closed
Gonkee opened this issue Jan 19, 2020 · 1 comment
Labels

Comments

@Gonkee
Copy link

Gonkee commented Jan 19, 2020

Godot version:

v3.1 Stable

OS/device including version:

Windows 10 Pro Version 1903 Build 18362.592

Issue description:

If you have scene B that is instanced in scene A, and set one of the children nodes in B to be its root, then open scene A again, then back to scene B, the whole scene disappears other than the new root. Check video recording in the zip file for more details.

Steps to reproduce:

  1. Create a scene called "instance" with any node as the root, and a few children nodes (such as sprites, etc.).
  2. Make another scene called "main" and add the "instance" scene to "main" as a child.
  3. Go into the "instance" scene and make one of its children nodes the root of the scene. Save the scene.
  4. Go into the "main" scene
  5. Go into the "instance" scene again. All the children nodes of the new roots may be deleted/disappeared. In some cases in the past, closing and reopening the scene doesn't bring the lost nodes back, while in others it does.

Minimal reproduction project:

scene deletion bug.zip

@KoBeWi
Copy link
Member

KoBeWi commented Jan 19, 2020

Duplicate of #24484, already fixed in 3.2

As for

In some cases in the past, closing and reopening the scene doesn't bring the lost nodes back, while in others it does.

it's possible you just accidentally saved the empty scene.

EDIT:
btw, the fix was cherry-picked for 3.1, so just upgrade to 3.1.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants