From 91af732516a8613c7f6198dc5ed617bbd534a71b Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Wed, 4 May 2016 16:30:38 -0700 Subject: [PATCH] if we receive an update from the entity-server that doesn't include one of our actions, resend the action data --- libraries/entities/src/EntityItem.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/entities/src/EntityItem.cpp b/libraries/entities/src/EntityItem.cpp index f0022245ad..4bf7aefb7b 100644 --- a/libraries/entities/src/EntityItem.cpp +++ b/libraries/entities/src/EntityItem.cpp @@ -1847,6 +1847,12 @@ void EntityItem::deserializeActionsInternal() { QUuid id = i.key(); if (!updated.contains(id)) { EntityActionPointer action = i.value(); + + if (action->isMine()) { + // we just received an update that didn't include one of our actions. tell the server about it. + setActionDataNeedsTransmit(true); + } + // don't let someone else delete my action. if (!action->isMine() && // if we've just added this action, don't remove it due to lack of mention in an incoming packet.