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>2020-07-20 16:30:12 +0300
committerJacques Lucke <jacques@blender.org>2020-07-20 16:31:05 +0300
commit4f4af0cbe17fe9781aeaefb7e0d2f554bdb9c1a5 (patch)
treee8765dd53aee71b6a84420d692526b33157e5896 /source/blender/simulation/intern/particle_allocator.hh
parent9016a29f194194085acfd937f31b80be0f1b0c8e (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/simulation/intern/particle_allocator.hh')
-rw-r--r--source/blender/simulation/intern/particle_allocator.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/simulation/intern/particle_allocator.hh b/source/blender/simulation/intern/particle_allocator.hh
index b742459b3c2..1e7578a75ed 100644
--- a/source/blender/simulation/intern/particle_allocator.hh
+++ b/source/blender/simulation/intern/particle_allocator.hh
@@ -77,6 +77,11 @@ class ParticleAllocator : NonCopyable, NonMovable {
{
}
+ const fn::AttributesInfo &attributes_info() const
+ {
+ return attributes_allocator_.attributes_info();
+ }
+
Span<fn::MutableAttributesRef> get_allocations() const
{
return attributes_allocator_.get_allocations();