From d1631143743ef429dd1b9196583af590bd39d461 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 5 May 2023 11:12:25 +0200 Subject: [PATCH] Gui: disable lighting for the label of an axis This way the backside of the label is displayed with the same color as the front side. Otherwise it may be black. --- src/Gui/ViewProviderOrigin.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Gui/ViewProviderOrigin.cpp b/src/Gui/ViewProviderOrigin.cpp index 251528fa29..5282836c1f 100644 --- a/src/Gui/ViewProviderOrigin.cpp +++ b/src/Gui/ViewProviderOrigin.cpp @@ -24,7 +24,8 @@ #include "PreCompiled.h" #ifndef _PreComp_ -# include +# include +# include #endif #include @@ -59,6 +60,10 @@ ViewProviderOrigin::ViewProviderOrigin() pcGroupChildren = new SoGroup(); pcGroupChildren->ref(); + + auto lm = new SoLightModel(); + lm->model = SoLightModel::BASE_COLOR; + pcRoot->insertChild(lm, 0); } ViewProviderOrigin::~ViewProviderOrigin() {