Files
test/source/blender/blenkernel
Chao Li a56df90931 Fix #108198: Particle hair crash when using Hair Dynamics
`hair_out_mesh` and `hair_in_mesh` implicitly share edges.
In `hair_create_input_mesh()`, edge data of `hair_in_mesh` needs to be
updated and therefore are copied to a new location. In the subsequent
frames, `psys->clmd->clothObject->edges` won't be updated and point to
freed memory block. Therefore, Blender crashes.
By freeing `hair_out_mesh` first,
1. in `hair_create_input_mesh(),` at least edge data copying is avoided
2. `psys->clmd->clothObject->edges` always points to correct memory

However, since it's possible that similar situation will happen again
by adding another strong user to the same `CustomData` in the future,
it is safer to update `psys->clmd->clothObject->edges` for every frame.

Pull Request: https://projects.blender.org/blender/blender/pulls/108480
2023-06-06 18:46:35 +02:00
..
2022-11-12 18:33:31 +01:00
2023-05-02 13:07:48 +02:00
2023-04-05 14:39:51 +10:00
2023-03-13 11:57:03 +01:00
2023-04-26 16:14:07 +10:00
2022-10-05 13:48:01 -05:00
2023-03-03 10:09:20 +11:00
2023-05-17 11:35:46 +12:00
2023-06-06 16:29:22 +02:00
2023-05-08 11:48:01 +02:00
2023-04-05 15:30:32 +02:00
2023-04-21 19:08:44 +02:00