summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2019-07-25 16:28:11 +0300
committermaxim_productengine <mnikolenko@productengine.com>2019-07-25 16:28:11 +0300
commitcb49f2a79534212e9da83ff0ff7afaf05687daf2 (patch)
treec187fed6688c0b4bded929af52c2cb09903bc450 /indra
parent68b69714b739d7b33d91fdfde2d4e4434ff11339 (diff)
SL-11649 FIXED [Love Me Render] Mesh links in HUDs do not have highlights when selected.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llselectmgr.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp
index 68e4d56c81..74022cee01 100644
--- a/indra/newview/llselectmgr.cpp
+++ b/indra/newview/llselectmgr.cpp
@@ -5861,15 +5861,18 @@ void LLSelectMgr::renderSilhouettes(BOOL for_hud)
BOOL is_hud_object = objectp->isHUDAttachment();
+ if (!is_hud_object)
+ {
+ gGL.loadIdentity();
+ gGL.multMatrix(gGLModelView);
+ }
+
if (objectp->mDrawable->isActive())
{
- gGL.loadMatrix(gGLModelView);
gGL.multMatrix((F32*)objectp->getRenderMatrix().mMatrix);
}
else if (!is_hud_object)
{
- gGL.loadIdentity();
- gGL.multMatrix(gGLModelView);
LLVector3 trans = objectp->getRegion()->getOriginAgent();
gGL.translatef(trans.mV[0], trans.mV[1], trans.mV[2]);
}
@@ -5954,6 +5957,10 @@ void LLSelectMgr::renderSilhouettes(BOOL for_hud)
{
hlColor = sHighlightInspectColor;
}
+ else if (node->isTransient())
+ {
+ hlColor = sContextSilhouetteColor;
+ }
renderMeshSelection_f(node, objectp, hlColor);
}
else