summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
authorNyx Linden <nyx@lindenlab.com>2013-06-21 21:21:57 -0400
committerNyx Linden <nyx@lindenlab.com>2013-06-21 21:21:57 -0400
commit01ffa6788793cdecff313b704422f0e814452489 (patch)
treed40eb270819aa23207653f9aec6fbd11551c8c3a /indra/newview/llvoavatar.cpp
parent4ffc162492a3fe882af0899ba70e835c80367d09 (diff)
SH-4240 FIX Users can set their hover height to 0
Adjusted the startup conditions, and relogging should apply the enforcement as appropriate now. Note that this affects the startup enforcement and should re-test the macro avatar loading bug.
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rwxr-xr-xindra/newview/llvoavatar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 46b909c4a1..8c20533b4c 100755
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -5223,7 +5223,7 @@ void LLVOAvatar::computeBodySize()
// Enforce a constraint to make sure we don't go below 1.1 meters (server-enforced limit)
// Camera positioning and other things start to break down when your avatar is "walking" while being fully underground
const LLViewerObject * last_object = NULL;
- if (isSelf() && getWearableData() && isFullyLoaded() && !LLApp::isQuitting())
+ if (isSelf() && getWearableData() && !LLApp::isQuitting())
{
// Do not force a hover parameter change while we have pending attachments, which may be mesh-based with
// joint offsets.
@@ -5246,7 +5246,7 @@ void LLVOAvatar::computeBodySize()
last_object = object;
llwarns << "attachment at point: " << (*points_iter).first << " object exists: " << object->getAttachmentItemID() << llendl;
loaded &=!object->isDrawableState(LLDrawable::REBUILD_ALL);
- if (!loaded && shape && !shape->getVolitile())
+ if (!loaded && shape && !shape->getVolatile())
{
llwarns << "caught unloaded attachment! skipping enforcement" << llendl;
}
@@ -5259,7 +5259,7 @@ void LLVOAvatar::computeBodySize()
{
LL_DEBUGS("Avatar") << "scanned at least one object!" << LL_ENDL;
}
- if (loaded && shape && !shape->getVolitile())
+ if (loaded && shape && !shape->getVolatile())
{
F32 hover_value = shape->getVisualParamWeight(AVATAR_HOVER);
if (hover_value < 0.0f && (mBodySize.mV[VZ] + hover_value < 1.1f))