Gui: Fix render order of datum planes

This commit is contained in:
Kacper Donat
2025-01-06 01:14:54 +01:00
committed by Chris Hennes
parent ee50153d6e
commit c95c4e8fe4
5 changed files with 100 additions and 14 deletions

View File

@@ -130,6 +130,8 @@
#include "NavigationAnimation.h"
#include "Utilities.h"
#include <Inventor/So3DAnnotation.h>
FC_LOG_LEVEL_INIT("3DViewer", true, true)
@@ -2387,6 +2389,11 @@ void View3DInventorViewer::renderScene()
try {
// Render normal scenegraph.
inherited::actualRedraw();
So3DAnnotation::render = true;
glClear(GL_DEPTH_BUFFER_BIT);
glra->apply(SoDelayedAnnotationsElement::getDelayedPaths(state));
So3DAnnotation::render = false;
}
catch (const Base::MemoryException&) {
// FIXME: If this exception appears then the background and camera position get broken somehow. (Werner 2006-02-01)