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:
authorSimon Repp <simon@openideas.at>2014-01-18 22:18:53 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-01-18 22:22:04 +0400
commit6cd132b29c30f4f55e1a216bf9fc583becd41dd5 (patch)
treea2a279925f084305953109eba45f58c96ac6fbc0 /source/blender/makesdna/DNA_curve_types.h
parentf6624b84cf75aecad2899e3e43fc28fd9d2ea0d8 (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/makesdna/DNA_curve_types.h')
-rw-r--r--source/blender/makesdna/DNA_curve_types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_curve_types.h b/source/blender/makesdna/DNA_curve_types.h
index f30ecad4cd9..695df477e8b 100644
--- a/source/blender/makesdna/DNA_curve_types.h
+++ b/source/blender/makesdna/DNA_curve_types.h
@@ -131,7 +131,8 @@ typedef struct Nurb {
short type;
short mat_nr; /* index into material list */
short hide, flag;
- short pntsu, pntsv; /* number of points in the U or V directions */
+ int pntsu, pntsv; /* number of points in the U or V directions */
+ short pad[2];
short resolu, resolv; /* tessellation resolution in the U or V directions */
short orderu, orderv;
short flagu, flagv;