diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-03-28 18:11:36 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-03-29 15:19:53 +0300 |
commit | 283e86eda5d3fc412b95d8e518e13a9ecf3e3d33 (patch) | |
tree | a9aaded97f5dfa008e5dd9e5a6a9b42e84098c84 /indra/newview/lltoolmorph.cpp | |
parent | ae4f64eee717562c4dc207c0216bfdae80e23fa9 (diff) |
SL-16811 Shape preview images do not display all of the attachments #2
Merged previewAvatar and generateImpostor into a single function since they are nearly identical
Diffstat (limited to 'indra/newview/lltoolmorph.cpp')
-rw-r--r-- | indra/newview/lltoolmorph.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/lltoolmorph.cpp b/indra/newview/lltoolmorph.cpp index b5eb2880ae..d99c0ba2a6 100644 --- a/indra/newview/lltoolmorph.cpp +++ b/indra/newview/lltoolmorph.cpp @@ -239,7 +239,15 @@ BOOL LLVisualParamHint::render() LLViewerCamera::getInstance()->setPerspective(FALSE, mOrigin.mX, mOrigin.mY, mFullWidth, mFullHeight, FALSE); - gPipeline.previewAvatar(gAgentAvatarp); + if (gAgentAvatarp->mDrawable.notNull()) + { + LLGLDepthTest gls_depth(GL_TRUE, GL_TRUE); + gGL.flush(); + gGL.setSceneBlendType(LLRender::BT_REPLACE); + gPipeline.generateImpostor(gAgentAvatarp, true); + gGL.setSceneBlendType(LLRender::BT_ALPHA); + gGL.flush(); + } gAgentAvatarp->setVisualParamWeight(mVisualParam->getID(), mLastParamWeight); mWearablePtr->setVisualParamWeight(mVisualParam->getID(), mLastParamWeight); |