diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-31 14:09:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-31 14:09:06 +0400 |
commit | 00b8c2afa195bb2e8aaf9afd8cd43d0100e0ce94 (patch) | |
tree | d78d7a07f98bbd64f615fbe407bdf2a972c31fe1 /source/blender/blenkernel/intern/curve.c | |
parent | 12ed0c64bc7062f46cd1307b5566e99064330733 (diff) |
style cleanup
Diffstat (limited to 'source/blender/blenkernel/intern/curve.c')
-rw-r--r-- | source/blender/blenkernel/intern/curve.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c index 06dad495d81..4515273d7d9 100644 --- a/source/blender/blenkernel/intern/curve.c +++ b/source/blender/blenkernel/intern/curve.c @@ -818,10 +818,7 @@ static void basisNurb(float t, short order, short pnts, float *knots, float *bas opp2 = orderpluspnts - 1; /* this is for float inaccuracy */ - if (t < knots[0]) - t = knots[0]; - else - if (t > knots[opp2]) t = knots[opp2]; + t = (t < knots[0]) ? knots[0] : knots[opp2]; /* this part is order '1' */ o2 = order + 1; |