defold / defold/defold

Inconsistent naming of duplicated nodes

Open
#11,868 0 comments 4 reactions 0 assignees View on GitHub
bug editor ux
Dominant language
C++
Stars
6.3k
Forks
455
Avg merge
1d 16h
Merged PRs (30d)
131

Description

**Describe the bug (REQUIRED)**
The naming logic during duplication is inconsistent. Currently, duplicating node_1 results in node_ (stripping the number) instead of node_2. This breaks the numbering flow.

**Expected behavior (REQUIRED)**
Smart Increment: Implement logic to detect trailing numbers. When duplicating a node like node_1, the new node should be named node_2.

**Workaround (OPTIONAL):**
Manually renaming every duplicated node to maintain proper numbering.

From https://github.com/defold/defold/issues/11861

Contributor guide

Open the contributing guide

Research direction

No file or test is named in the issue. Start by tracing the node-duplication naming logic in the Defold editor, using the linked issue 11861 for context. Done means duplicating node_1 produces node_2 and preserves the expected numbering flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.