Make sure we always get the offset right on SL

meow-7.2.2
Ansariel 2015-04-09 11:34:42 +02:00
parent 722dedbe93
commit 26e18c6448
1 changed files with 7 additions and 1 deletions

View File

@ -3308,7 +3308,13 @@ void LLVOAvatarSelf::dumpWearableInfo(LLAPRFile& outfile)
// [RLVa:KB] - Checked: 2013-03-03 (RLVa-1.4.8)
F32 LLVOAvatarSelf::getAvatarOffset() /*const*/
{
return (isUsingServerBakes()) ? LLAvatarAppearance::getAvatarOffset() : gSavedPerAccountSettings.getF32("AvatarHoverOffsetZ");
#ifdef OPENSIM
if (!LLGridManager::getInstance()->isInSecondLife())
{
return (isUsingServerBakes()) ? LLAvatarAppearance::getAvatarOffset() : gSavedPerAccountSettings.getF32("AvatarHoverOffsetZ");
}
#endif
return LLAvatarAppearance::getAvatarOffset();
}
// [/RLVa:KB]