mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
set creation time when loading unknown timestamp
This commit is contained in:
parent
2441be21e2
commit
f09b3eb736
1 changed files with 3 additions and 0 deletions
|
@ -772,6 +772,9 @@ int EntityTreeElement::readElementDataFromBuffer(const unsigned char* data, int
|
|||
entityItemID = entityItem->getEntityItemID();
|
||||
_myTree->setContainingElement(entityItemID, this);
|
||||
_myTree->postAddEntity(entityItem);
|
||||
if (entityItem->getCreated() == UNKNOWN_CREATED_TIME) {
|
||||
entityItem->recordCreationTime();
|
||||
}
|
||||
}
|
||||
}
|
||||
// Move the buffer forward to read more entities
|
||||
|
|
Loading…
Reference in a new issue