From 5b5ddebb1aae112baa91ef4ff57ee0345825cdad Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Mon, 8 Feb 2016 15:09:51 -0800 Subject: [PATCH] set last-edited when updating a child's queryAACube --- libraries/physics/src/EntityMotionState.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/physics/src/EntityMotionState.cpp b/libraries/physics/src/EntityMotionState.cpp index 155186e891..73548b73f2 100644 --- a/libraries/physics/src/EntityMotionState.cpp +++ b/libraries/physics/src/EntityMotionState.cpp @@ -527,6 +527,9 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, const Q if (descendant->computePuffedQueryAACube()) { EntityItemProperties newQueryCubeProperties; newQueryCubeProperties.setQueryAACube(descendant->getQueryAACube()); + auto now = usecTimestampNow(); + entityDescendant->setLastEdited(now); + newQueryCubeProperties.setLastEdited(now); entityPacketSender->queueEditEntityMessage(PacketType::EntityEdit, descendant->getID(), newQueryCubeProperties); entityDescendant->setLastBroadcast(usecTimestampNow()); }