Core: SoShapeScale fix weird scaling on viewport resize. See https://github.com/FreeCAD/FreeCAD/issues/18382#issuecomment-2527623758

This commit is contained in:
PaddleStroke
2024-12-09 14:25:36 +01:00
committed by wwmayer
parent 09be35359e
commit dbdbc9934e
10 changed files with 21 additions and 19 deletions

View File

@@ -59,8 +59,9 @@ void ViewProviderPoint::attach(App::DocumentObject * obj) {
pCoords->point.setValue(point);
sep->addChild(pCoords);
static const float size = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View")->GetFloat("DatumPointSize", 2.5);
auto sphere = new SoSphere();
sphere->radius.setValue(1.0);
sphere->radius.setValue(size);
sep->addChild(sphere);
// Add pick style to define how the point can be selected