decentraland / sdk

PM repository for SDK
Apache License 2.0
4 stars 4 forks source link

After duplicating I'm still on the original #1131

Open nearnshaw opened 1 month ago

nearnshaw commented 1 month ago

After I duplicate an item, on the the entity tree I see like I have the new item I just pasted as selected. However, I really have the original selected. This becomes clear only when I edit the properties of the item, thinking I'm editing the duplicate, but really I'm editing the original.

You can see it in this video I copy a text element, and seems like I have selected the new copy. The entity tree shows that, and it feels like the most logical thing to do. But as soon as I change the text, it really changes the original.

https://github.com/user-attachments/assets/617779ef-6876-4b38-8512-b7f64225b403

Another scenario that seems consequence of the same problem: If I select multiple items and copy and paste them together, both items are properly duplicated. However, my current selection after doing that action is still only ONE of the original items. I would expect to have selected the two new items after pasting. This problem passes if I use CtrC & CtrlV. If I right click on the entity and select "duplicate" it behaves as I expected.