diff options
author | Jacques Lucke <jacques@blender.org> | 2022-03-10 20:06:43 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-03-10 20:06:43 +0300 |
commit | 3f91e7d7792ed5315e8b0c80de4355f064db4a6d (patch) | |
tree | 304d896d716fb04283e0562ec41ece17d7246532 /source/blender/blenkernel/BKE_curves.hh | |
parent | 22a341d9d8d3d337f79df228ab2e4e0726f81430 (diff) |
Curves: actually delete curves with Delete brush
Previously, the position was just set to zero as part of the prototype.
Differential Revision: https://developer.blender.org/D14291
Diffstat (limited to 'source/blender/blenkernel/BKE_curves.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_curves.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_curves.hh b/source/blender/blenkernel/BKE_curves.hh index f3d9090d16b..6cab9c8ff90 100644 --- a/source/blender/blenkernel/BKE_curves.hh +++ b/source/blender/blenkernel/BKE_curves.hh @@ -95,6 +95,7 @@ class CurvesGeometry : public ::CurvesGeometry { * Access a range of indices of point data for a specific curve. */ IndexRange range_for_curve(int index) const; + IndexRange range_for_curves(IndexRange curves) const; /** The type (#CurveType) of each curve, or potentially a single if all are the same type. */ VArray<int8_t> curve_types() const; @@ -147,6 +148,8 @@ class CurvesGeometry : public ::CurvesGeometry { void update_customdata_pointers(); + void remove_curves(IndexMask curves_to_delete); + /* -------------------------------------------------------------------- * Attributes. */ |