[Bf-blender-cvs] [2dbbbc7e858] temp-varray-get-set-multiple: add slice method

Jacques Lucke noreply at git.blender.org
Sun Sep 26 15:09:35 CEST 2021


Commit: 2dbbbc7e8580586d8dbc1270c6aed7419d0291e0
Author: Jacques Lucke
Date:   Sun Sep 26 14:52:12 2021 +0200
Branches: temp-varray-get-set-multiple
https://developer.blender.org/rB2dbbbc7e8580586d8dbc1270c6aed7419d0291e0

add slice method

===================================================================

M	source/blender/blenlib/BLI_index_mask.hh

===================================================================

diff --git a/source/blender/blenlib/BLI_index_mask.hh b/source/blender/blenlib/BLI_index_mask.hh
index ad030e127fe..88f3d12547e 100644
--- a/source/blender/blenlib/BLI_index_mask.hh
+++ b/source/blender/blenlib/BLI_index_mask.hh
@@ -223,6 +223,11 @@ class IndexMask {
     return indices_.is_empty();
   }
 
+  IndexMask slice(IndexRange slice) const
+  {
+    return indices_.slice(slice);
+  }
+
   IndexMask slice_and_offset(IndexRange slice, Vector<int64_t> &r_new_indices) const;
 };



More information about the Bf-blender-cvs mailing list