diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-20 16:30:12 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-20 16:31:05 +0300 |
commit | 4f4af0cbe17fe9781aeaefb7e0d2f554bdb9c1a5 (patch) | |
tree | e8765dd53aee71b6a84420d692526b33157e5896 /source/blender/functions | |
parent | 9016a29f194194085acfd937f31b80be0f1b0c8e (diff) |
Particles: support removing particles during the simulation
This still cannot be controlled by the user. Currently, all particles are
killed after two seconds
Diffstat (limited to 'source/blender/functions')
-rw-r--r-- | source/blender/functions/FN_attributes_ref.hh | 5 |
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_; |