diff options
author | Aleksi Juvani <aleksijuvani> | 2022-01-11 15:02:49 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-01-11 15:08:13 +0300 |
commit | 0c94e5d166027ff29a9d4027da2e5353e500c3ae (patch) | |
tree | 23949016195fcdd55744535a3f7dd97a58b73f68 /source/blender/draw/intern/draw_manager.c | |
parent | 9dc9692b09793cda3db9ba59108a81be338b4c4b (diff) |
Fix `PSYS_GLOBAL_HAIR` stripped even if connecting the hair fails
After disconnecting hair on an object, if you then hide the particle system, and try connecting the hair again, the operator is cancelled due to `remap_hair_emitter` returning `false` because `target_psmd->mesh_final` is NULL, but `connect_hair` will still strip the `PSYS_GLOBAL_HAIR` flag, which will cause the hair in the hidden particle system to be positioned incorrectly. The correct behavior is to strip the flag only if `remap_hair_emitter` succeeds.
Differential Revision: https://developer.blender.org/D13703
Diffstat (limited to 'source/blender/draw/intern/draw_manager.c')
0 files changed, 0 insertions, 0 deletions