History

set last-edited when updating a child's queryAACube

Seth Alves committed 10 years ago

Commit 5b5ddeb1 parent 92d016f1 file · +3 −0Browse files

Showing the changes to libraries/physics/src/EntityMotionState.cpp (1 of 1 file). Show all

Unified · Split

libraries/physics/src/EntityMotionState.cpp+3−0
@@ -527,6 +527,9 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, const Q · 526 unmodified lines
527527 if (descendant->computePuffedQueryAACube()) {
528528 EntityItemProperties newQueryCubeProperties;
529529 newQueryCubeProperties.setQueryAACube(descendant->getQueryAACube());
530+ auto now = usecTimestampNow();
531+ entityDescendant->setLastEdited(now);
532+ newQueryCubeProperties.setLastEdited(now);
530533 entityPacketSender->queueEditEntityMessage(PacketType::EntityEdit, descendant->getID(), newQueryCubeProperties);
531534 entityDescendant->setLastBroadcast(usecTimestampNow());
532535 }