mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 21:47:09 +02:00
Merge pull request #14256 from ctrlaltdavid/M17008
Fix Interface crash importing JSON with duplicate entity IDs in file
This commit is contained in:
commit
1ff644b619
1 changed files with 5 additions and 3 deletions
|
@ -2767,9 +2767,11 @@ bool EntityTree::readFromMap(QVariantMap& map) {
|
|||
success = false;
|
||||
}
|
||||
|
||||
const QUuid& cloneOriginID = entity->getCloneOriginID();
|
||||
if (!cloneOriginID.isNull()) {
|
||||
cloneIDs[cloneOriginID].push_back(entity->getEntityItemID());
|
||||
if (entity) {
|
||||
const QUuid& cloneOriginID = entity->getCloneOriginID();
|
||||
if (!cloneOriginID.isNull()) {
|
||||
cloneIDs[cloneOriginID].push_back(entity->getEntityItemID());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue