Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-31 14:09:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-31 14:09:06 +0400
commit00b8c2afa195bb2e8aaf9afd8cd43d0100e0ce94 (patch)
treed78d7a07f98bbd64f615fbe407bdf2a972c31fe1 /source/blender/blenkernel/intern/curve.c
parent12ed0c64bc7062f46cd1307b5566e99064330733 (diff)
style cleanup
Diffstat (limited to 'source/blender/blenkernel/intern/curve.c')
-rw-r--r--source/blender/blenkernel/intern/curve.c5
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;