#138: CaWE: Copy and paste caused duplicate entity name
---------------------+----------------------
Reporter: Carsten | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: other | Version: svn-head
Keywords: | Platform:
---------------------+----------------------
I took the following steps:
- opened map `BPRockB.cmap` (at cmap version 13) in CaWE,
- copied (Ctrl+C) the `weapon_facehugger` entity,
- pasted (Ctrl+P),
- saved (at cmap version 14).
As expected, there were two `weapon_facehugger` entities in the map, but
the second had the exact same name as the original.
Consequently, any attempt to re-load the map failed with this error:
{{{
Warning: Could not load "Games\DeathMatch\Maps\BPRockB.cent":
Games\DeathMatch\Maps\BPRockB.cent:288: bad argument #1 to 'AddChild'
(child entity already has a parent, use RemoveChild() first)
}}}
It was expected that pasting the entity checked its name, and adjusted it
accordingly to avoid duplicates!
--
Ticket URL: <
http://trac.cafu.de/ticket/138>
Cafu 3D Game and Graphics Engine <
http://www.cafu.de>
The open-source game engine and graphics engine for multiplayer, cross-platform, real-time 3D action.