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:
authorJacques Lucke <jacques@blender.org>2022-03-10 20:06:43 +0300
committerJacques Lucke <jacques@blender.org>2022-03-10 20:06:43 +0300
commit3f91e7d7792ed5315e8b0c80de4355f064db4a6d (patch)
tree304d896d716fb04283e0562ec41ece17d7246532 /source/blender/blenkernel/BKE_curves.hh
parent22a341d9d8d3d337f79df228ab2e4e0726f81430 (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.hh3
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.
*/