Skip to content

Invisible nodes when pasting nodes from unsaved scene. #95781

Description

@RidleyF

Tested versions

Reproducible in Godot 4.2.2 (Stable)

System information

Godot v4.2.2.stable - macOS 14.5.0 - GLES3 (Compatibility) - Intel(R) Iris(TM) Plus Graphics OpenGL Engine (1x6x8 (fused) LP - Intel(R) Core(TM) i3-1000NG4 CPU @ 1.10GHz (4 Threads)

Issue description

When pasting nodes from a newly created and unsaved scene, all nodes except for the root node will be invisible (maybe deleted). When re-adding the same nodes with the same name to the scene, the name will become [name]2 or more.

Steps to reproduce

  1. Click the + on the scene bar to add a new scene.
  2. Choose "2D Scene". Works with other nodes as well.
  3. Use Command-A to add a new Sprite2D, or use the + button to add a child Sprite2D to the root. Some other nodes work.
  4. With only the Sprite2D selected, hold shift and click the root Node2D to select all nodes.
  5. Copy them with Command+C
  6. Without saving the scene, create a new scene like you did in step 1.
  7. In the new scene, use Command+V to paste the nodes.
  8. Like you did in step 3, add a new Sprite2D (or other node of the same kind added in step 3). The name with be Sprite2D2. Changing the name to Sprite2D and hitting enter will rename it to Sprite2D2.
Godot.Invisible.Nodes.mov

Minimal reproduction project (MRP)

Just create a new project and follow the steps above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions