diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-25 15:51:15 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-25 15:51:15 +0300 |
commit | 0ae2a1d12affc382d9fef8aff0703bea891fa0fb (patch) | |
tree | 4d868840e7e84c2deb4b1b9d71ea44e550df7944 /source/blender/simulation/intern/simulation_solver_influences.hh | |
parent | d52e45c89e24af3751c286eb43791fa17636569a (diff) |
Particles: improve emitter when object is animated
Diffstat (limited to 'source/blender/simulation/intern/simulation_solver_influences.hh')
-rw-r--r-- | source/blender/simulation/intern/simulation_solver_influences.hh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/simulation/intern/simulation_solver_influences.hh b/source/blender/simulation/intern/simulation_solver_influences.hh index 2a173970edc..94a1f9a926f 100644 --- a/source/blender/simulation/intern/simulation_solver_influences.hh +++ b/source/blender/simulation/intern/simulation_solver_influences.hh @@ -18,6 +18,7 @@ #define __SIM_SIMULATION_SOLVER_INFLUENCES_HH__ #include "BLI_float3.hh" +#include "BLI_float4x4.hh" #include "BLI_multi_value_map.hh" #include "BLI_span.hh" @@ -112,6 +113,16 @@ class SimulationStateMap { } }; +class DependencyAnimations { + public: + ~DependencyAnimations(); + + virtual bool is_object_transform_changing(Object &object) const; + virtual void get_object_transforms(Object &object, + Span<float> simulation_times, + MutableSpan<float4x4> r_transforms) const; +}; + struct SimulationSolveContext { Simulation &simulation; Depsgraph &depsgraph; @@ -119,6 +130,7 @@ struct SimulationSolveContext { TimeInterval solve_interval; const SimulationStateMap &state_map; const bke::PersistentDataHandleMap &handle_map; + const DependencyAnimations &dependency_animations; }; class ParticleAllocators { |