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:
parent
2e0af6a7a0
commit
5dafde957a
|
|
@ -234,10 +234,6 @@ public:
|
||||||
{
|
{
|
||||||
ConnectEntities connector(e1, e2, index);
|
ConnectEntities connector(e1, e2, index);
|
||||||
const char* value = e2->getKeyValue("targetname");
|
const char* value = e2->getKeyValue("targetname");
|
||||||
if(string_empty(value))
|
|
||||||
{
|
|
||||||
value = e1->getKeyValue(connector.keyname());
|
|
||||||
}
|
|
||||||
if(!string_empty(value))
|
if(!string_empty(value))
|
||||||
{
|
{
|
||||||
connector.connect(value);
|
connector.connect(value);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user