mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 14:33:34 +02:00
Merge pull request #7938 from sethalves/set-age-of-imported-to-zero
fix age of imported entities
This commit is contained in:
commit
a1ec6c2961
1 changed files with 4 additions and 0 deletions
|
@ -1376,6 +1376,10 @@ bool EntityTree::sendEntitiesOperation(OctreeElementPointer element, void* extra
|
|||
item->globalizeProperties(properties, "Cannot find %3 parent of %2 %1", args->root);
|
||||
}
|
||||
}
|
||||
|
||||
// set creation time to "now" for imported entities
|
||||
properties.setCreated(usecTimestampNow());
|
||||
|
||||
properties.markAllChanged(); // so the entire property set is considered new, since we're making a new entity
|
||||
|
||||
// queue the packet to send to the server
|
||||
|
|
Loading…
Reference in a new issue