diff options
Diffstat (limited to 'linden/indra/newview/llagent.cpp')
-rw-r--r-- | linden/indra/newview/llagent.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/linden/indra/newview/llagent.cpp b/linden/indra/newview/llagent.cpp index 0b9f646..df3ab18 100644 --- a/linden/indra/newview/llagent.cpp +++ b/linden/indra/newview/llagent.cpp | |||
@@ -7411,7 +7411,16 @@ void LLAgent::sendAgentSetAppearance() | |||
7411 | msg->nextBlockFast(_PREHASH_VisualParam ); | 7411 | msg->nextBlockFast(_PREHASH_VisualParam ); |
7412 | 7412 | ||
7413 | // We don't send the param ids. Instead, we assume that the receiver has the same params in the same sequence. | 7413 | // We don't send the param ids. Instead, we assume that the receiver has the same params in the same sequence. |
7414 | const F32 param_value = param->getWeight(); | 7414 | F32 param_value; |
7415 | if(param->getID() == 507) | ||
7416 | param_value = mAvatarObject->getActualBoobGrav(); | ||
7417 | else if(param->getID() == 795) | ||
7418 | param_value = mAvatarObject->getActualButtGrav(); | ||
7419 | else if(param->getID() == 157) | ||
7420 | param_value = mAvatarObject->getActualFatGrav(); | ||
7421 | else | ||
7422 | param_value = param->getWeight(); | ||
7423 | |||
7415 | const U8 new_weight = F32_to_U8(param_value, param->getMinWeight(), param->getMaxWeight()); | 7424 | const U8 new_weight = F32_to_U8(param_value, param->getMinWeight(), param->getMaxWeight()); |
7416 | msg->addU8Fast(_PREHASH_ParamValue, new_weight ); | 7425 | msg->addU8Fast(_PREHASH_ParamValue, new_weight ); |
7417 | transmitted_params++; | 7426 | transmitted_params++; |