diff options
Diffstat (limited to 'linden/indra/newview/llfloatercustomize.cpp')
-rw-r--r-- | linden/indra/newview/llfloatercustomize.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/linden/indra/newview/llfloatercustomize.cpp b/linden/indra/newview/llfloatercustomize.cpp index bfca034..4761491 100644 --- a/linden/indra/newview/llfloatercustomize.cpp +++ b/linden/indra/newview/llfloatercustomize.cpp | |||
@@ -1230,13 +1230,19 @@ void LLScrollingPanelParam::onSliderMoved(LLUICtrl* ctrl, void* userdata) | |||
1230 | LLFloaterCustomize* floater_customize = gFloaterCustomize; | 1230 | LLFloaterCustomize* floater_customize = gFloaterCustomize; |
1231 | if (!floater_customize) return; | 1231 | if (!floater_customize) return; |
1232 | 1232 | ||
1233 | //avatar height stuff -Patrick Sapinski (Wednesday, August 19, 2009) | 1233 | //avatar height stuff |
1234 | // Use the values in SNOW-197 as they seem more accurate -- MC | ||
1234 | LLVOAvatar* avatar = gAgent.getAvatarObject(); | 1235 | LLVOAvatar* avatar = gAgent.getAvatarObject(); |
1235 | F32 avatar_size = (avatar->mBodySize.mV[VZ]) + (F32)0.17; //mBodySize is actually quite a bit off. | 1236 | //mBodySize is actually quite a bit off. |
1237 | F32 avatar_size = (avatar->mBodySize.mV[VZ]) + (F32)0.195; | ||
1238 | int inches = (int)(avatar_size / .0254f); | ||
1239 | int feet = inches / 12; | ||
1240 | inches %= 12; | ||
1236 | 1241 | ||
1237 | floater_customize->getChild<LLTextBox>("HeightText")->setValue(llformat("%.2f", avatar_size) + "m"); | 1242 | floater_customize->getChild<LLTextBox>("HeightText")->\ |
1238 | floater_customize->getChild<LLTextBox>("HeightText2")->setValue(llformat("%.2f",llround(avatar_size / 0.3048)) + "'" | 1243 | setValue(llformat("%.2f", avatar_size) + "m"); |
1239 | + llformat("%.2f",llround(avatar_size * 39.37) % 12) + "\""); | 1244 | floater_customize->getChild<LLTextBox>("HeightText2")->\ |
1245 | setValue(llformat("%.2f' %.2f\"", feet, inches)); | ||
1240 | 1246 | ||
1241 | gAgent.getAvatarObject()->setVisualParamWeight( param, new_weight, FALSE); | 1247 | gAgent.getAvatarObject()->setVisualParamWeight( param, new_weight, FALSE); |
1242 | gAgent.getAvatarObject()->updateVisualParams(); | 1248 | gAgent.getAvatarObject()->updateVisualParams(); |