Skip to content

Commit

Permalink
Core: Fix pre-selection of coordinate system
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Dec 10, 2024
1 parent ab5b53e commit 438c6d7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/Gui/ViewProviderDatum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,15 @@ void ViewProviderDatum::attach(App::DocumentObject* pcObject)
highlight->documentName = getObject()->getDocument()->getName();
highlight->style = SoFCSelection::EMISSIVE_DIFFUSE;

// Visible features
auto visible = new SoSeparator();
// Style for normal (visible) lines
auto style = new SoDrawStyle();
style->lineWidth = lineThickness;
highlight->addChild(style);
visible->addChild(style);

// Visible lines
highlight->addChild(pRoot);
visible->addChild(pRoot);

// Hidden features
auto hidden = new SoAnnotation();
Expand All @@ -126,9 +128,9 @@ void ViewProviderDatum::attach(App::DocumentObject* pcObject)
// Hidden lines
hidden->addChild(pRoot);

highlight->addChild(hidden);
visible->addChild(hidden);

sep->addChild(highlight);
sep->addChild(visible);


// Scale feature to the given size
Expand All @@ -139,7 +141,9 @@ void ViewProviderDatum::attach(App::DocumentObject* pcObject)
soScale->setPart("shape", sep);
soScale->scaleFactor = sz;

addDisplayMaskMode(soScale, "Base");
highlight->addChild(soScale);

addDisplayMaskMode(highlight, "Base");
}


Expand Down

0 comments on commit 438c6d7

Please sign in to comment.