Merge pull request from sethalves/set-age-of-imported-to-zero

fix age of imported entities
This commit is contained in:
Brad Hefta-Gaub 2016-05-19 17:53:31 -07:00
commit a1ec6c2961

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