diff options
author | Bastien Montagne <bastien@blender.org> | 2020-10-05 19:50:38 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-10-08 19:19:24 +0300 |
commit | 196d6166e51dc9496a8a678c329758134988eee3 (patch) | |
tree | 58cf4061d645f18c2b04eef823ba1254e51df0b6 /source/blender/editors/transform/transform_mode_bend.c | |
parent | cac0e78aff06a48b6b3c1296c0fc0102cc0aa0ae (diff) |
Refactor CustomData interpolation code.
- Move some security checks outside of `interp` callbacks.
Namely, that we do get interpolation weights, and have something to
interpolate.
Some callbacks where not checking on those anyway, safer to move that
up into calling code.
- Cleanup usage of sub-weights, lots of interpolation callbacks wher
actually using those completely wrong.
- Change default behavior when no weights are given to higher-level API
functions: prevriously, each callback was responsible to handle that
case (and one did not even do it!), they were switching to purely
additive behavior then.
Instead, we now default to expected simple average of source values.
Note that the only real important change here is defaulting to actual
average of source value when no inertpolation weights are given (afaik,
this only happens in Weld modifier code).
Differential Revision: https://developer.blender.org/D9114
Diffstat (limited to 'source/blender/editors/transform/transform_mode_bend.c')
0 files changed, 0 insertions, 0 deletions