Update picked pixel values when changing overlays

* This accounts for e.g. quad overdraw where the picked pixel value is
  affected.
This commit is contained in:
baldurk
2017-11-10 13:21:19 +00:00
parent cac4c7f100
commit de452da804
+4
View File
@@ -2908,6 +2908,10 @@ void TextureViewer::on_overlay_currentIndexChanged(int index)
m_TexDisplay.overlay = (DebugOverlay)ui->overlay->currentIndex();
INVOKE_MEMFN(RT_UpdateAndDisplay);
if(m_Output != NULL && m_PickedPoint.x() >= 0 && m_PickedPoint.y() >= 0)
{
INVOKE_MEMFN(RT_PickPixelsAndUpdate);
}
}
void TextureViewer::channelsWidget_mouseClicked(QMouseEvent *event)