set created-time for imported entities to 'now'

This commit is contained in:
Seth Alves 2016-05-19 10:21:04 -07:00
parent 232bd475df
commit 7ea7bd3e1d

View file

@ -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