From e5916466a6c353309c27873b9e35600bc6178508 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Wed, 18 Jun 2025 14:00:39 +0200 Subject: [PATCH] Fixed force sending posmsg --- Messages/PoseMsg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Messages/PoseMsg.cpp b/Messages/PoseMsg.cpp index aca128e..d72e453 100644 --- a/Messages/PoseMsg.cpp +++ b/Messages/PoseMsg.cpp @@ -8,11 +8,11 @@ PoseMsg::PoseMsg(unsigned char networkId, Thing* thing, bool force) { this->thingId = thing->id; this->poseType = 0; - if (thing->positionUpdated || (force && thing->IsRoot())) { + if (thing->positionUpdated || (force || thing->IsRoot())) { this->position = thing->GetPosition(); this->poseType |= Pose_Position; } - if (thing->orientationUpdated || (force && thing->IsRoot())) { + if (thing->orientationUpdated || (force || thing->IsRoot())) { this->orientation = thing->GetOrientation(); this->poseType |= Pose_Orientation; }