diff options
author | Robert Sheldon <rsheldiii> | 2021-07-15 16:58:34 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2021-07-15 17:09:24 +0300 |
commit | 59f9a5e6ac6f5bff914204ef299cba27bb5016eb (patch) | |
tree | b0b9620b8f84e8831b34439ac6ced8368644e583 /source/blender/simulation/SIM_mass_spring.h | |
parent | 60fee69682ac399204404a03ba99845787a53e39 (diff) |
Fix T88188: Allow keyframing vertex mass in cloth sim
Update vertex weights between simulation steps if they have changed.
This allows for animated vertex weights in the cloth sim.
Reviewed By: Sebastian Parborg
Differential Revision: http://developer.blender.org/D11640
Diffstat (limited to 'source/blender/simulation/SIM_mass_spring.h')
-rw-r--r-- | source/blender/simulation/SIM_mass_spring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/simulation/SIM_mass_spring.h b/source/blender/simulation/SIM_mass_spring.h index 43de8b155cf..b3299258209 100644 --- a/source/blender/simulation/SIM_mass_spring.h +++ b/source/blender/simulation/SIM_mass_spring.h @@ -45,6 +45,8 @@ void SIM_mass_spring_solver_free(struct Implicit_Data *id); int SIM_mass_spring_solver_numvert(struct Implicit_Data *id); int SIM_cloth_solver_init(struct Object *ob, struct ClothModifierData *clmd); +void SIM_mass_spring_set_implicit_vertex_mass(struct Implicit_Data *data, int index, float mass); + void SIM_cloth_solver_free(struct ClothModifierData *clmd); int SIM_cloth_solve(struct Depsgraph *depsgraph, struct Object *ob, |