summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorHoward Stearns <howard.stearns@gmail.com>2022-02-04 12:46:22 -0800
committerHoward Stearns <howard.stearns@gmail.com>2022-02-04 12:46:22 -0800
commit3397ca14766855091b8fd9391527d381e94793b1 (patch)
tree6606cbdac5c92abdca0d1ab36e798c04d2240901 /indra
parent57a7f63dcce6eb20a05dbc42bfdc9ac51072cb7e (diff)
SL-98 - Guessing at what might make MS compiler happier.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llvoavatar.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 812a5c4fe6..7123c0e3dd 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -1675,16 +1675,16 @@ void LLVOAvatar::renderBones(const std::string &selected_joint)
void LLVOAvatar::renderGroundPlane(float z_offset)
{ // Not necesarilly general - beware - but it seems to meet the needs of LLModelPreview::render
- LLVector3 root_pos = mRoot->getPosition();
+ const LLVector3 root_pos = mRoot->getPosition();
const LLVector4a* ext = mDrawable->getSpatialExtents();
- auto min = ext[0], max = ext[1];
- auto center = (max - min) * 0.5f;
- F32 ground = root_pos[2] - center[2] - z_offset;
-
- LLVector3 vA{min[0], min[1], ground};
- LLVector3 vB{max[0], min[1], ground};
- LLVector3 vC{max[0], max[1], ground};
- LLVector3 vD{min[0], max[1], ground};
+ const LLVector4a min = ext[0], max = ext[1];
+ const F32 center = (max[2] - min[2]) * 0.5f;
+ const F32 ground = root_pos[2] - center - z_offset;
+
+ const LLVector3 vA{min[0], min[1], ground};
+ const LLVector3 vB{max[0], min[1], ground};
+ const LLVector3 vC{max[0], max[1], ground};
+ const LLVector3 vD{min[0], max[1], ground};
gGL.diffuseColor3f( 1.0f, 0.0f, 1.0f );