[Gui] Make axis colors of axis kit (world origin axis) changeable

This commit is contained in:
Benjamin Bræstrup Sayoc
2024-10-03 23:44:40 +02:00
parent f4f902e4a3
commit c6e590ce9d
2 changed files with 31 additions and 6 deletions

View File

@@ -347,6 +347,10 @@ void View3DSettings::OnChange(ParameterGrp::SubjectType &rCaller,ParameterGrp::M
else if (strcmp(Reason,"AxisXColor") == 0 || strcmp(Reason,"AxisYColor") == 0 || strcmp(Reason,"AxisZColor") == 0) {
for (auto _viewer : _viewers) {
_viewer->getNaviCube()->updateColors();
if(_viewer->hasAxisCross()) {
_viewer->setAxisCross(false); // Force redraw
_viewer->setAxisCross(true);
}
}
}
else if (strcmp(Reason,"UseVBO") == 0) {