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:
authorOmar Emara <OmarSquircleArt>2021-03-23 10:26:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-23 10:34:46 +0300
commitec97450ac6160a8892a339a746a507e40b7d2fce (patch)
treec1294ae63a80d803172e6a6322952cac7ca8f459 /source/blender/makesdna/DNA_curve_defaults.h
parentf2f796e623237504790b421e54a4a82549e68c92 (diff)
Curves: add taper mode option
Currently, when a taper object is specified, the radius of the spline is ignored. This patch adds a new option to control how the taper object affect the effective radius of the spline. The option allow three modes of operation: - Override: The old method. The radius of the spline is ignored and overridden. - Multiply: The radius of the spline is multiplied by the taper radius. - Add: The radius of the spline is added to the taper radius. Ref D10779
Diffstat (limited to 'source/blender/makesdna/DNA_curve_defaults.h')
-rw-r--r--source/blender/makesdna/DNA_curve_defaults.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_curve_defaults.h b/source/blender/makesdna/DNA_curve_defaults.h
index 07dd0aeb08d..557615fd047 100644
--- a/source/blender/makesdna/DNA_curve_defaults.h
+++ b/source/blender/makesdna/DNA_curve_defaults.h
@@ -50,6 +50,7 @@
.bevfac2_mapping = CU_BEVFAC_MAP_RESOLU, \
.bevresol = 4, \
.bevel_mode = CU_BEV_MODE_ROUND, \
+ .taper_radius_mode = CU_TAPER_RADIUS_OVERRIDE, \
}
/** \} */