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

Exported variables are duplicated/rereferenced on duplicated scenes #83551

Closed
niceWizzard opened this issue Oct 18, 2023 · 2 comments
Closed
Labels

Comments

@niceWizzard
Copy link

Godot version

4.1.2.stable

System information

Windows 11 - AMD Ryzen 5 Laptop

Issue description

When you have an exported node like a Sprite, and its parent scene is duplicated, the duplicated scenes is now going to reference the same exported node. Basically, duplicated scene with exported variables will reference the original exported variable of the original scene

Tried it out in v4.0.4.stable it is working as expected. Tried out on 4.1.1.stable and 4.1.2.stable, the rereferencing is happening.
Drag & Dropping the same scene will not have the same bug. Only duplication (ctrl + D) will cause the bug.

Steps to reproduce

  1. Have a main scene.
  2. Create a mob scene
  3. Attach a script to mob scene
  4. Add an exported node
  5. Assign the exported node in the editor
  6. Drag and drop the mob scene in the main scene
  7. Duplicate (Ctrl + D) the dragged mob

The duplicated mob scene is now going to reference the same exported node

Minimal reproduction project

reproduction.zip <--- 4.0 bug not here

reproduction.4.1.zip <--- 4.1 bug here

@niceWizzard niceWizzard changed the title Exported nodes are duplicated/rereferenced on duplicated nodes Exported variables are duplicated/rereferenced on duplicated nodes Oct 18, 2023
@niceWizzard niceWizzard changed the title Exported variables are duplicated/rereferenced on duplicated nodes Exported variables are duplicated/rereferenced on duplicated scenes Oct 18, 2023
@lostminds
Copy link

Looks like duplicate of #82670?

@AThousandShips
Copy link
Member

AThousandShips commented Oct 22, 2023

Thank you for reporting! Closing as a duplicate of:

Consolidating there

@AThousandShips AThousandShips marked this as a duplicate of #82670 Oct 22, 2023
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

3 participants