Gui: use an annotation node so that line is always rendered on top of the scene

This commit is contained in:
wmayer
2023-04-01 14:52:09 +02:00
committed by wwmayer
parent 6bd40b5dcd
commit d08ceef3c8

View File

@@ -32,7 +32,7 @@
# include <Inventor/nodes/SoBaseColor.h>
# include <Inventor/nodes/SoCoordinate3.h>
# include <Inventor/nodes/SoLineSet.h>
# include <Inventor/nodes/SoSeparator.h>
# include <Inventor/nodes/SoAnnotation.h>
#endif
#include <Base/Console.h>
@@ -222,7 +222,7 @@ InteractiveScale::InteractiveScale(View3DInventorViewer* view, ViewProvider* vp)
{
coords = new SoCoordinate3;
coords->ref();
root = new SoSeparator;
root = new SoAnnotation;
root->ref();
root->addChild(coords);