fix double vs. float problem to solve problems in Mesh.nearestFacetOnRay

This commit is contained in:
wmayer
2019-01-08 19:13:50 +01:00
parent faf9c5bcac
commit 52b51c0f5b
6 changed files with 24 additions and 22 deletions

View File

@@ -349,7 +349,7 @@ void ViewProviderMesh::onChanged(const App::Property* prop)
pcPointStyle->pointSize = PointSize.getValue();
}
else if (prop == &CreaseAngle) {
pShapeHints->creaseAngle = (F_PI*CreaseAngle.getValue())/180.0;
pShapeHints->creaseAngle = Base::toRadians<float>(CreaseAngle.getValue());
}
else if (prop == &OpenEdges) {
showOpenEdges(OpenEdges.getValue());