mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 03:53:52 +02:00
make sure interface accepts server adjustment to lifetime, even for imported entities
This commit is contained in:
parent
01c1cb328f
commit
fe09a1a57c
1 changed files with 3 additions and 2 deletions
|
@ -945,9 +945,10 @@ int EntityTree::processEditPacketData(ReceivedMessage& message, const unsigned c
|
|||
properties.setLifetime(_maxTmpEntityLifetime);
|
||||
// also bump up the lastEdited time of the properties so that the interface that created this edit
|
||||
// will accept our adjustment to lifetime back into its own entity-tree.
|
||||
if (properties.getLastEdited() != UNKNOWN_CREATED_TIME) {
|
||||
properties.setLastEdited(properties.getLastEdited() + LAST_EDITED_SERVERSIDE_BUMP);
|
||||
if (properties.getLastEdited() == UNKNOWN_CREATED_TIME) {
|
||||
properties.setLastEdited(usecTimestampNow());
|
||||
}
|
||||
properties.setLastEdited(properties.getLastEdited() + LAST_EDITED_SERVERSIDE_BUMP);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue