Copy and paste issue with embedded scenes

Godot Version

4.3

Question

Hi all!

Just noticed this weird issue when I was trying to copy and paste embedded scenes. If I add an object to the embedded scene hierarchy, it will duplicate fine but on a copy paste the added object wont appear.
CopyPasteBug
Is that a bug? It makes it difficult to copy things from one scene to another.

Thanks,
Pete

I’d be using instantiate child scene after making it a scene.

I suppose duplicating takes a copy of what is actually in the tree at the time, so it gets ‘correctly’ pasted. Whereas ‘copy’ will store a reference, then load it from file on paste. So if you have not saved the scene, perhaps it is not yet in the file system? Just guessing here really, it does seem weird.

PS I tried to duplicate this with an unsaved scene and both duplicate and copy/paste worked fine. Scene saved or not.

PPS Why does your node have the “(Added)” after the node name. I have never seen that before. Perhaps this is the reason it is not being copied, in that it is not properly instantiated for some reason. It does appear to be greyed out.

PPPS I am guessing you added it for clarity (I did not know you can have brackets in a node name). But why is it greyed out like that?

Hey thanks for looking into that.

Yeah, I renamed the node (Added) for my example. :slight_smile: It probably just looks greyed out from the gif compression.

What would be the best way to share the scenes here?

https://www.dropbox.com/scl/fo/1cbr1icziqmsrzbo945hj/ACa71I-YngYmeYMHx7bZcq8?rlkey=e1o2ezhpcq4h6c6ufbev9dyoo&st=ouplhtvd&dl=0
If you feel like checking it out I uploaded it to dropbox.

Oh, I am on macOS by the way. Probably worth mentioning.

P.

Most likely, an existing node in the scene is duplicated. But copying it pastes the scene by reference. I’m not sure if this is erroneous behavior. It may have been intended that way. “It’s not a bug, it’s a feature.”

Yeah, well I’m really new to Godot so I’m making a lot of mistakes. :crazy_face:
I kinda thought other people would be using scenes like this though.