[Sketcher] Ensure reference angle constraint is always positive, fixes #4621

This commit is contained in:
0penBrain
2021-12-23 10:37:17 +01:00
committed by abdullahtahiriyo
parent 705b3221af
commit 5f4de4e209

View File

@@ -3493,7 +3493,7 @@ bool Sketch::updateNonDrivingConstraints()
}
else if((*it).constr->Type==Angle) {
(*it).constr->setValue(std::remainder(*((*it).value), 2.0*M_PI));
(*it).constr->setValue(std::fmod(*((*it).value), 2.0*M_PI));
}
else if((*it).constr->Type==Diameter && (*it).constr->First>=0 ) {