When connecting entities, don't reuse the target field to name the entity

If an entity already has a target field, chances are that the targeted
entity still exists and the mapper will just get a naming collision.
This commit is contained in:
Jānis Rūcis 2010-07-14 04:34:43 +03:00
parent 2e0af6a7a0
commit 5dafde957a

View File

@ -234,10 +234,6 @@ public:
{
ConnectEntities connector(e1, e2, index);
const char* value = e2->getKeyValue("targetname");
if(string_empty(value))
{
value = e1->getKeyValue(connector.keyname());
}
if(!string_empty(value))
{
connector.connect(value);