diff options
Diffstat (limited to 'source/blender/freestyle/intern/view_map/FEdgeXDetector.h')
-rw-r--r-- | source/blender/freestyle/intern/view_map/FEdgeXDetector.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/view_map/FEdgeXDetector.h b/source/blender/freestyle/intern/view_map/FEdgeXDetector.h index 9df0b4bb4bd..2bcf2d3bee8 100644 --- a/source/blender/freestyle/intern/view_map/FEdgeXDetector.h +++ b/source/blender/freestyle/intern/view_map/FEdgeXDetector.h @@ -96,10 +96,12 @@ class FEdgeXDetector { // XXX angle should be in radian... inline void setCreaseAngle(float angle) { - if (angle < 0.0) + if (angle < 0.0) { angle = 0.0; - else if (angle > 180.0) + } + else if (angle > 180.0) { angle = 180.0; + } angle = cos(M_PI * (180.0 - angle) / 180.0); if (angle != _creaseAngle) { _creaseAngle = angle; |