diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-15 15:15:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-15 15:30:31 +0300 |
commit | 4226ee0b71fec6f08897dacf3d6632526618acca (patch) | |
tree | 560c333c5a9458f3dbbb606befd52d558b35503f /source/blender/blenlib/intern/BLI_dial_2d.c | |
parent | 30c3852ffd140b003410aae25b222dea8b76412f (diff) |
Cleanup: comment line length (blenlib)
Prevents clang-format wrapping text before comments.
Diffstat (limited to 'source/blender/blenlib/intern/BLI_dial_2d.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_dial_2d.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/BLI_dial_2d.c b/source/blender/blenlib/intern/BLI_dial_2d.c index 1f4c59ac2fb..eb18b307e3c 100644 --- a/source/blender/blenlib/intern/BLI_dial_2d.c +++ b/source/blender/blenlib/intern/BLI_dial_2d.c @@ -66,7 +66,8 @@ float BLI_dial_angle(Dial *dial, const float current_position[2]) sub_v2_v2v2(current_direction, current_position, dial->center); - /* only update when we have enough precision, by having the mouse adequately away from center */ + /* only update when we have enough precision, + * by having the mouse adequately away from center */ if (len_squared_v2(current_direction) > dial->threshold_squared) { float angle; float cosval, sinval; @@ -86,7 +87,8 @@ float BLI_dial_angle(Dial *dial, const float current_position[2]) angle = atan2f(sinval, cosval); /* change of sign, we passed the 180 degree threshold. This means we need to add a turn. - * to distinguish between transition from 0 to -1 and -PI to +PI, use comparison with PI/2 */ + * to distinguish between transition from 0 to -1 and -PI to +PI, + * use comparison with PI/2 */ if ((angle * dial->last_angle < 0.0f) && (fabsf(dial->last_angle) > (float)M_PI_2)) { |