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:
Diffstat (limited to 'source/blender/functions/FN_attributes_ref.hh')
-rw-r--r--source/blender/functions/FN_attributes_ref.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/functions/FN_attributes_ref.hh b/source/blender/functions/FN_attributes_ref.hh
index 2af35317827..ed14676731e 100644
--- a/source/blender/functions/FN_attributes_ref.hh
+++ b/source/blender/functions/FN_attributes_ref.hh
@@ -179,6 +179,11 @@ class MutableAttributesRef {
return range_.size();
}
+ IndexRange index_range() const
+ {
+ return IndexRange(this->size());
+ }
+
const AttributesInfo &info() const
{
return *info_;