diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-11-16 19:18:01 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-11-16 19:18:01 +0300 |
commit | 72ee62e0dae84c8077f2b79aa485103d59ce0aad (patch) | |
tree | 1cbf68280ff6a7926c69faaccbe5cd72af935bc9 /intern | |
parent | 07af45eec5870765e7ac66e8639afe41141244b0 (diff) |
Fix crash on freeing hair system
Fix a crash when a hair system's `ParticleSettings` ID datablock was
linked from another file but couldn't be found. This results in default
settings, with `type = PART_EMITTER`, where the particle data still has
a non-NULL `hair` pointer. Previously, copies of such a particle system
would NOT copy hair data for non-hair particle systems, hence the
pointer of the copy pointed to the original data, which got freed (at
least) twice upon closing the blend file.
This is now fixed by always copying the hair data, regardless of the
particle system type.
Reviewed by: mont29
Differential Revision: https://developer.blender.org/D13245
Diffstat (limited to 'intern')
0 files changed, 0 insertions, 0 deletions