Commit 6e8169f
Scene: carry TagComponent lock/label on copy and duplicate
TagComponent is excluded from AllComponents/DuplicateComponents (its name
is copied specially at entity creation), so the editor-only Locked and
LabelColor fields were dropped by Scene::Copy and DuplicateEntity —
Ctrl+D on a locked or colour-labelled entity produced a bare duplicate.
Carry both fields explicitly in both paths, alongside the name copy.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZz1zmqCagPaqQwAu6Ci9x1 parent fc613f3 commit 6e8169f
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
233 | 237 | | |
234 | 238 | | |
235 | 239 | | |
| |||
956 | 960 | | |
957 | 961 | | |
958 | 962 | | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
959 | 969 | | |
960 | 970 | | |
961 | 971 | | |
| |||
0 commit comments