From 9b18f15655d8b13628480a9eb69e8f8259260746 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Sun, 1 Nov 2015 10:38:57 -0500 Subject: [PATCH] Fix opensim by modernizing --- indra/newview/llagent.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 4f421318d..2e085c54e 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -4686,20 +4686,14 @@ void LLAgent::sendAgentSetAppearance() } - static bool send_physics_params = false; - send_physics_params |= !!gAgentWearables.selfHasWearable(LLWearableType::WT_PHYSICS); S32 transmitted_params = 0; for (LLViewerVisualParam* param = (LLViewerVisualParam*)gAgentAvatarp->getFirstVisualParam(); param; param = (LLViewerVisualParam*)gAgentAvatarp->getNextVisualParam()) { - if (param->getGroup() == VISUAL_PARAM_GROUP_TWEAKABLE) // do not transmit params of group VISUAL_PARAM_GROUP_TWEAKABLE_NO_TRANSMIT + if (param->getGroup() == VISUAL_PARAM_GROUP_TWEAKABLE || + param->getGroup() == VISUAL_PARAM_GROUP_TRANSMIT_NOT_TWEAKABLE) // do not transmit params of group VISUAL_PARAM_GROUP_TWEAKABLE_NO_TRANSMIT { - //A hack to prevent ruthing on older viewers when phys wearables aren't being worn. - if(!send_physics_params && param->getID() >= 10000) - { - break; - } msg->nextBlockFast(_PREHASH_VisualParam ); // We don't send the param ids. Instead, we assume that the receiver has the same params in the same sequence.