diff options
author | Hans Goudey <h.goudey@me.com> | 2021-06-28 22:28:52 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-06-28 22:28:52 +0300 |
commit | a0c45a2d5416f780451a23830087a6e712d26ef1 (patch) | |
tree | 60933bec1cba120dbe5cdf8c5b266c46409f4b85 /source/blender/blenlib/BLI_vector.hh | |
parent | 790cb28766813c94733637e46a6527eaf9a04a6b (diff) |
Cleanup: Add function to create a CurveEval from a nurbs list
Sometimes the current spline list isn't part of the original curve, like
when using the deformed control points, etc. This will be helpful in
the curve modifier stack.
Diffstat (limited to 'source/blender/blenlib/BLI_vector.hh')
-rw-r--r-- | source/blender/blenlib/BLI_vector.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_vector.hh b/source/blender/blenlib/BLI_vector.hh index 5b88ad6fa7d..da02c4f4ae1 100644 --- a/source/blender/blenlib/BLI_vector.hh +++ b/source/blender/blenlib/BLI_vector.hh @@ -213,7 +213,8 @@ class Vector { * Example Usage: * Vector<ModifierData *> modifiers(ob->modifiers); */ - Vector(ListBase &values, Allocator allocator = {}) : Vector(NoExceptConstructor(), allocator) + Vector(const ListBase &values, Allocator allocator = {}) + : Vector(NoExceptConstructor(), allocator) { LISTBASE_FOREACH (T, value, &values) { this->append(value); |