Fix opensim by modernizing

This commit is contained in:
Lirusaito
2015-11-01 10:38:57 -05:00
committed by Lirusaito
parent 9508ed20a7
commit 9b18f15655

View File

@@ -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.