diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-10 01:25:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-10 01:25:27 +0400 |
commit | a91964e0e2f6758e076b522724bb1bc63933cb91 (patch) | |
tree | 7cd61d572570250f65e12afbbd1e6867c378f15e /source/blender/editors/gpencil/gpencil_edit.c | |
parent | eabb30a2367808c163a90d658c5be586530098ec (diff) |
code cleanup: use boolean for intersection functions.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_edit.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index 9ee1f59fe21..2d24b34e60b 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -1268,7 +1268,7 @@ static void gp_stroke_norm_curve_weights(Curve *cu, const float minmax_weights[2 int i; /* when delta == minmax_weights[0] == minmax_weights[1], we get div by zero [#35686] */ - if (IS_EQ(delta, minmax_weights[1])) + if (IS_EQF(delta, minmax_weights[1])) fac = 1.0f; else fac = 1.0f / (minmax_weights[1] - delta); |