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:
authorLukas Treyer <treyer@arch.ethz.ch>2014-03-28 14:41:56 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-03-28 14:44:33 +0400
commit97cb76a45d689a0d39e1d194f51119412e6c8e00 (patch)
treee84bbf4505589a6c03b7a9b698fe48fe4854e202 /source/blender/blenkernel/intern/curve.c
parent3977b7612fa5d21d8e5b7af04da571149db7d2d9 (diff)
Bevel Factor Mapping
Bevel Factor Mapping allows to control the relation between bevel factors (number between 0 and 1) and the rendered start and end point of a beveled spline. There are three options: "Resolution", "Segments", "Spline". "Resolution" option maps bevel factors as it was done < 2.71, "Spline" and "Segments" are new. * "Resolution“: Map the bevel factor to the number of subdivisions of a spline (U resolution). * "Segments“: Map the bevel factor to the length of a segment and to the number of subdivisions of a segment. * "Spline": Map the bevel factor to the length of a spline. Reviewers: yakca, sergey, campbellbarton CC: sanne Differential Revision: https://developer.blender.org/D294
Diffstat (limited to 'source/blender/blenkernel/intern/curve.c')
-rw-r--r--source/blender/blenkernel/intern/curve.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c
index 864682c5607..44c9bc9ebbe 100644
--- a/source/blender/blenkernel/intern/curve.c
+++ b/source/blender/blenkernel/intern/curve.c
@@ -182,6 +182,8 @@ Curve *BKE_curve_add(Main *bmain, const char *name, int type)
cu->type = type;
cu->bevfac1 = 0.0f;
cu->bevfac2 = 1.0f;
+ cu->bevfac1_mapping = CU_BEVFAC_MAP_RESOLU;
+ cu->bevfac2_mapping = CU_BEVFAC_MAP_RESOLU;
cu->bb = BKE_boundbox_alloc_unit();