Changes default scale from 2.0 to 3.0  Adds a parameter. DefaultArrowScale
to control.
This commit is contained in:
sliptonic
2025-09-23 10:21:52 -05:00
committed by Chris Hennes
parent 8b759af395
commit f45408053c

View File

@@ -160,6 +160,7 @@ ViewProviderPath::ViewProviderPath()
mg = ((mcol >> 16) & 0xff) / 255.0;
mb = ((mcol >> 8) & 0xff) / 255.0;
int lwidth = hGrp->GetInt("DefaultPathLineWidth", 1);
float arrowScale = hGrp->GetFloat("DefaultArrowScale", 3.0f);
ADD_PROPERTY_TYPE(NormalColor,
(lr, lg, lb),
"Path",
@@ -251,7 +252,7 @@ ViewProviderPath::ViewProviderPath()
pArrow->set("zAxis.appearance.drawStyle", "style INVISIBLE");
pArrow->set("zHead.transform", "translation 0 0 0");
pArrowScale->setPart("shape", pArrow);
pArrowScale->scaleFactor = 2.0f;
pArrowScale->scaleFactor = arrowScale;
pArrowGroup->addChild(pArrowScale);
pcArrowSwitch->addChild(pArrowGroup);