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 20d64a7f0f
commit 396963006b
10 changed files with 21 additions and 19 deletions

View File

@@ -79,7 +79,7 @@ void ViewProviderLine::attach(App::DocumentObject *obj) {
noRole = true;
}
static const float size = ViewProviderCoordinateSystem::defaultSize();
static const float size = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View")->GetFloat("DatumLineSize", 70.0);
SbVec3f verts[2];
if (noRole) {