diff options
author | Hans Goudey <h.goudey@me.com> | 2022-06-09 14:09:04 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-06-09 14:09:04 +0300 |
commit | 8a6cbcf386a1833d2b76aa0afc8abf830493f190 (patch) | |
tree | f018cf71877160301d2b3c4604719af2fa3fbac1 /source/blender/blenkernel/BKE_curves.hh | |
parent | 0fddff027ed025c27c818ff68315b8285e5c1a69 (diff) |
Curves: Port delete geometry node to the new curves type
Add a method to remove points from the new curves type, just like
the existing curve removal function. No functional changes are expected.
The code is simpler because all data is just stored as attributes, but
also different because the point data for all curves is stored in the same
arrays.
Similar performance improvements as other commits in T95443 are
expected, expecially for cases where there are many small curves.
Differential Revision: https://developer.blender.org/D15130
Diffstat (limited to 'source/blender/blenkernel/BKE_curves.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_curves.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_curves.hh b/source/blender/blenkernel/BKE_curves.hh index 28d03f96db1..2bebd3ff97d 100644 --- a/source/blender/blenkernel/BKE_curves.hh +++ b/source/blender/blenkernel/BKE_curves.hh @@ -387,6 +387,7 @@ class CurvesGeometry : public ::CurvesGeometry { void update_customdata_pointers(); + void remove_points(IndexMask points_to_delete); void remove_curves(IndexMask curves_to_delete); /** |