diff options
author | Armin Weatherwax | 2010-02-22 17:57:35 +0100 |
---|---|---|
committer | Jacek Antonelli | 2010-03-05 14:18:48 -0600 |
commit | d0936606412ccaf05a2e17894d2bc9a3c18506ab (patch) | |
tree | fb15bb14014eb9f6cc0512f4f3fbf408de8459e3 /linden/indra/newview/llagent.cpp | |
parent | Fixed some notifications that were ported from 1.2 incorrectly. (diff) | |
download | meta-impy-d0936606412ccaf05a2e17894d2bc9a3c18506ab.zip meta-impy-d0936606412ccaf05a2e17894d2bc9a3c18506ab.tar.gz meta-impy-d0936606412ccaf05a2e17894d2bc9a3c18506ab.tar.bz2 meta-impy-d0936606412ccaf05a2e17894d2bc9a3c18506ab.tar.xz |
Ported breast physics from Emerald.
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++; |