PartDesign: Use std::numeric_limits and std::numbers instead of defines
This commit is contained in:
@@ -327,7 +327,7 @@ void fixSketchSupport (Sketcher::SketchObject* sketch)
|
||||
// Offset to base plane
|
||||
// Find out which direction we need to offset
|
||||
double a = sketchVector.GetAngle(pnt);
|
||||
if ((a < -M_PI_2) || (a > M_PI_2))
|
||||
if ((a < -std::numbers::pi/2) || (a > std::numbers::pi/2))
|
||||
offset *= -1.0;
|
||||
|
||||
std::string Datum = doc->getUniqueObjectName("DatumPlane");
|
||||
|
||||
Reference in New Issue
Block a user