Gui: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -155,7 +155,7 @@ void ViewProviderAnnotation::onChanged(const App::Property* prop)
|
||||
}
|
||||
}
|
||||
else if (prop == &Rotation) {
|
||||
pRotationXYZ->angle = (Rotation.getValue()/360)*(2*M_PI);
|
||||
pRotationXYZ->angle = (Rotation.getValue()/360)*(2*std::numbers::pi);
|
||||
}
|
||||
else {
|
||||
ViewProviderDocumentObject::onChanged(prop);
|
||||
|
||||
Reference in New Issue
Block a user