Draws world annotations before scene render

This reordering of draw calls is to ensure that volume renderer does not
clobber the annotations.
This commit is contained in:
Manish Mathai 2017-09-21 16:08:10 -07:00
parent 53fb679e91
commit 28c1bc65d7

@ -50,9 +50,11 @@ void View3D::Paint()
{
this->GetCanvas().Activate();
this->GetCanvas().Clear();
this->SetupForWorldSpace();
this->GetScene().Render(this->GetMapper(), this->GetCanvas(), this->GetCamera());
this->RenderWorldAnnotations();
this->GetScene().Render(this->GetMapper(), this->GetCanvas(), this->GetCamera());
this->SetupForScreenSpace();
this->RenderAnnotations();
this->RenderScreenAnnotations();