diff options
author | Roxie Linden <roxie@lindenlab.com> | 2011-01-28 16:37:27 -0800 |
---|---|---|
committer | Roxie Linden <roxie@lindenlab.com> | 2011-01-28 16:37:27 -0800 |
commit | 159afd141d1a4de595084c70f2025e783e3defa8 (patch) | |
tree | 44dede0181c3203e692138380324db7ca9ff2cfb /indra/newview | |
parent | 92018853e2c9d6151e342c0b483a02fd0599a41f (diff) |
SH-753 - Ghost meshes
Fix the case where the silhouette shown when editing a mesh in an adjacent region
was showing up in the wrong place. The silhouette was not being translated
by the avs view with respect to the region.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llselectmgr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp index 44ccbe22f7..8ffbd5510d 100644 --- a/indra/newview/llselectmgr.cpp +++ b/indra/newview/llselectmgr.cpp @@ -5490,13 +5490,15 @@ void LLSelectNode::renderOneWireframe(const LLColor4& color) glMatrixMode(GL_MODELVIEW); gGL.pushMatrix(); - + BOOL is_hud_object = objectp->isHUDAttachment(); if (!is_hud_object) { glLoadIdentity(); glMultMatrixd(gGLModelView); + LLVector3 trans = objectp->getRegion()->getOriginAgent(); + glTranslatef(trans.mV[0], trans.mV[1], trans.mV[2]); } if (drawable->isActive()) |