Skip to content
Snippets Groups Projects
Commit 46b325ff authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Don't set highlight channel unless we have a selected face

parent 164a076b
No related branches found
No related tags found
No related merge requests found
...@@ -3884,8 +3884,6 @@ void LLPipeline::postSort(LLCamera& camera) ...@@ -3884,8 +3884,6 @@ void LLPipeline::postSort(LLCamera& camera)
{ {
mSelectedFaces.clear(); mSelectedFaces.clear();
LLPipeline::setRenderHighlightTextureChannel(gFloaterTools->getPanelFace()->getTextureChannelToEdit());
// Draw face highlights for selected faces. // Draw face highlights for selected faces.
if (LLSelectMgr::getInstance()->getTEMode()) if (LLSelectMgr::getInstance()->getTEMode())
{ {
...@@ -3904,6 +3902,11 @@ void LLPipeline::postSort(LLCamera& camera) ...@@ -3904,6 +3902,11 @@ void LLPipeline::postSort(LLCamera& camera)
return true; return true;
} }
} func; } func;
if (!mSelectedFaces.empty())
{
LLPipeline::setRenderHighlightTextureChannel(gFloaterTools->getPanelFace()->getTextureChannelToEdit());
}
LLSelectMgr::getInstance()->getSelection()->applyToTEs(&func); LLSelectMgr::getInstance()->getSelection()->applyToTEs(&func);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment