From 5dafde957a07dc4ead1486bdb78a11a1ef9d23bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C4=81nis=20R=C5=ABcis?= Date: Wed, 14 Jul 2010 04:34:43 +0300 Subject: [PATCH] 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. --- plugins/entity/entity.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/entity/entity.cpp b/plugins/entity/entity.cpp index ec02abda..36d7e919 100644 --- a/plugins/entity/entity.cpp +++ b/plugins/entity/entity.cpp @@ -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); -- 2.39.2