Origin axis: use same colors as axis cross and make bigger than planes

for easier selection and visualization
This commit is contained in:
Ronny Standtke
2023-04-29 19:53:48 +02:00
committed by Adrián Insaurralde Avalos
parent ddb080995b
commit 8d1c9c2563
3 changed files with 25 additions and 4 deletions

View File

@@ -182,9 +182,9 @@ void ViewProviderOrigin::onChanged(const App::Property* prop) {
if (vpPlaneXY) { vpPlaneXY->Size.setValue ( szXY ); }
if (vpPlaneXZ) { vpPlaneXZ->Size.setValue ( szXZ ); }
if (vpPlaneYZ) { vpPlaneYZ->Size.setValue ( szYZ ); }
if (vpLineX) { vpLineX->Size.setValue ( szX ); }
if (vpLineY) { vpLineY->Size.setValue ( szY ); }
if (vpLineZ) { vpLineZ->Size.setValue ( szZ ); }
if (vpLineX) { vpLineX->Size.setValue ( szX * axesScaling ); }
if (vpLineY) { vpLineY->Size.setValue ( szY * axesScaling ); }
if (vpLineZ) { vpLineZ->Size.setValue ( szZ * axesScaling ); }
} catch (const Base::Exception &ex) {
// While restoring a document don't report errors if one of the lines or planes