[Sketcher] set vertex size for new sketches to preference otherwise … (#26908)

* [Sketcher] set vertex size for new sketches to preference otherwise set to 4px

---------

Co-authored-by: Chris Hennes <[email protected]>
(cherry picked from commit c14d6f8848)
This commit is contained in:
Syres916
2026-01-16 22:51:21 +01:00
committed by Max Wilfinger
parent 222de6d9d2
commit b22bf2352a
+5 -2
View File
@@ -626,8 +626,11 @@ ViewProviderSketch::ViewProviderSketch()
VisualLayerList.setValues(std::move(layers));
// Default values that will be overridden by preferences (if existing)
PointSize.setValue(4);
ParameterGrp::handle hGrp =
App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
auto psize = hGrp->GetInt("DefaultShapePointSize", 4L);
PointSize.setValue(psize);
// visibility automation and other parameters: update parameter and property defaults to follow
// preferences