diff options
author | Simon Repp <simon@openideas.at> | 2014-01-18 22:18:53 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-01-18 22:22:04 +0400 |
commit | 6cd132b29c30f4f55e1a216bf9fc583becd41dd5 (patch) | |
tree | a2a279925f084305953109eba45f58c96ac6fbc0 /source/blender/editors/curve | |
parent | f6624b84cf75aecad2899e3e43fc28fd9d2ea0d8 (diff) |
Increase maximum allowed amount of points for Splines in both U and V directions
Increase the maximum allowed amount of points in a spline from currently 32,767 (short) to 2,147,483,647 (int).
Change variables that get assigned the value from pntsu/pntsv to int type all over the codebase.
Change function parameters that previously passed the count as short to int type as well.
(because https://developer.blender.org/T38191)
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D212
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 6d234598bf6..6144c84f1ba 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -3791,7 +3791,7 @@ static void rotate_direction_nurb(Nurb *nu) BPoint *bp1, *bp2, *temp; int u, v; - SWAP(short, nu->pntsu, nu->pntsv); + SWAP(int, nu->pntsu, nu->pntsv); SWAP(short, nu->orderu, nu->orderv); SWAP(short, nu->resolu, nu->resolv); SWAP(short, nu->flagu, nu->flagv); @@ -5476,7 +5476,8 @@ static int select_less_exec(bContext *C, wmOperator *UNUSED(op)) BPoint *bp; BezTriple *bezt; int a; - short sel = 0, lastsel = false; + int sel = 0; + short lastsel = false; if (obedit->type == OB_SURF) { for (nu = editnurb->first; nu; nu = nu->next) { |