Gui: use an annotation node so that line is always rendered on top of the scene
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user