diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-08-23 16:41:33 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-08-23 16:41:33 +0300 |
commit | 4d2dcb6a5fbd075df16db169460e4d3791289475 (patch) | |
tree | 37de54d82c74b652b1289123a0f9b5d578eb3c6e /source/blender/simulations/bparticles/offset_handlers.hpp | |
parent | 9c05112910946581ccf17b23fc0ec5f0297467a3 (diff) |
Initial implementation of updated ui proposal
Diffstat (limited to 'source/blender/simulations/bparticles/offset_handlers.hpp')
-rw-r--r-- | source/blender/simulations/bparticles/offset_handlers.hpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/simulations/bparticles/offset_handlers.hpp b/source/blender/simulations/bparticles/offset_handlers.hpp index fb745255ffd..02c540562f3 100644 --- a/source/blender/simulations/bparticles/offset_handlers.hpp +++ b/source/blender/simulations/bparticles/offset_handlers.hpp @@ -7,14 +7,17 @@ namespace BParticles { class CreateTrailHandler : public OffsetHandler { private: - std::string m_particle_type_name; + Vector<std::string> m_types_to_emit; std::unique_ptr<ParticleFunction> m_compute_inputs; + std::unique_ptr<Action> m_on_birth_action; public: - CreateTrailHandler(StringRef particle_type_name, - std::unique_ptr<ParticleFunction> compute_inputs) - : m_particle_type_name(particle_type_name.to_std_string()), - m_compute_inputs(std::move(compute_inputs)) + CreateTrailHandler(Vector<std::string> types_to_emit, + std::unique_ptr<ParticleFunction> compute_inputs, + std::unique_ptr<Action> on_birth_action) + : m_types_to_emit(std::move(types_to_emit)), + m_compute_inputs(std::move(compute_inputs)), + m_on_birth_action(std::move(on_birth_action)) { } |