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

[BUG] Editor: Duplicated entities are numbered incorrectly #381

Open
3 of 10 tasks
EzioDCL opened this issue Jan 21, 2025 · 0 comments
Open
3 of 10 tasks

[BUG] Editor: Duplicated entities are numbered incorrectly #381

EzioDCL opened this issue Jan 21, 2025 · 0 comments
Labels
bug Something isn't working editor

Comments

@EzioDCL
Copy link

EzioDCL commented Jan 21, 2025

Issue Description:

When duplicating an entity, a number is assigned to the new item to differentiate it from the original. However, successive duplications add additional numbers to the new entities name instead of iterating from the original number resulting in confusing naming conventions.

Tested on 0.11.1.

Tool:

  • Editor
  • CLI

Steps to reproduce:

  1. Open the Scene Editor
  2. Create or import any entity to the scene
  3. Duplicate the entity using the right click menu or a keyboard shortcut
  4. Notice that the new item will include a "_2" at the end of the entity name
  5. Duplicate the newly created entity
  6. Notice that a "_3" will be added next to the already present "_2" number

See attached video for more details:

Expected behaviour:

Duplicated entities that already have a number at the end of their name should iterate that same number instead of adding additional numbers to the end of the name.

For example:

Entity Name
Entity Name_2
Entity Name_3
Entity Name_4
Entity Name_5

In this situation if I select "Entity Name_3" and duplicate it, the new entity should be named "Entity Name_6".

Current behaviour:

New numbers are added at the end of the entity name each time:

Entity Name
Entity Name_2
Entity Name_2_3
Entity Name_2_3_4
Entity Name_2_3_4_5

Reproduction rate:

100%

Platforms:

  • Windows
  • Mac
  • Not platform specific

Environment:

  • production - web client
  • production - desktop client
  • local preview
  • web editor
  • desktop editor

Evidence:

Decentraland_Creator_Hub_sF7W35k92p.mp4

Additional Notes:

A possible but less desirable solution would be to keep the first entity selected after duplicating it so the new numbers are based on this one instead. But I would implement this as a workaround only.

@EzioDCL EzioDCL added bug Something isn't working editor labels Jan 21, 2025
@nearnshaw nearnshaw transferred this issue from decentraland/sdk Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working editor
Projects
Status: Todo
Development

No branches or pull requests

1 participant