diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-04-04 23:32:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-04-04 23:54:34 +0300 |
commit | 26979d45b196d2102f80b9048d90db885acaf675 (patch) | |
tree | 859d8b3e9c7ba55453b94627a718b1c863bfefe7 /source/blender/editors/sculpt_paint/paint_stroke.c | |
parent | cedd7cde442edc57b3aa1a562b3c0855a2db8d8b (diff) |
Cleanup: use float math funcs
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_stroke.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_stroke.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c index bfd429d0924..0db2259b307 100644 --- a/source/blender/editors/sculpt_paint/paint_stroke.c +++ b/source/blender/editors/sculpt_paint/paint_stroke.c @@ -1022,7 +1022,7 @@ static void paint_stroke_line_constrain (PaintStroke *stroke, float mouse[2]) float angle, len, res; sub_v2_v2v2(line, mouse, stroke->last_mouse_position); - angle = atan2(line[1], line[0]); + angle = atan2f(line[1], line[0]); len = len_v2(line); /* divide angle by PI/4 */ |