Skip to content

Commit

Permalink
MeasureGui: Also hide delta measurements
Browse files Browse the repository at this point in the history
  • Loading branch information
hlorus committed Sep 25, 2024
1 parent 6be69ac commit 780934d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Mod/Measure/Gui/ViewProviderMeasureBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ ViewProviderMeasureBase::ViewProviderMeasureBase()

pGlobalSeparator = new SoSeparator();
pGlobalSeparator->ref();
getRoot()->insertChild(pGlobalSeparator, 0);

// Connect visibility of delta measurements to the ModeSwitch
auto visibilitySwitch = new SoSwitch();
getRoot()->insertChild(visibilitySwitch, 0);
visibilitySwitch->addChild(pGlobalSeparator);
visibilitySwitch->whichChild.connectFrom(&pcModeSwitch->whichChild);

// setupAnnoSceneGraph() - sets up the annotation scene graph
pLabel = new Gui::SoFrameLabel();
Expand Down

0 comments on commit 780934d

Please sign in to comment.