diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2021-07-22 15:05:55 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-07-22 18:57:46 +0300 |
commit | 97712b018df71ccf1e2639d7ffa16618a0b81b71 (patch) | |
tree | 02972b40b0abed1d1e905e13f6b558b6fb831b71 /source/blender/compositor | |
parent | 0e8d1c6bcfcf232b94346af69a216bc4bc413b84 (diff) |
Fix T90026: attributes added in editmode are lost on modeswitch
When exiting editmode, customdata [and thus attributes] are copied from
**BMesh** to **Mesh** (in `BM_mesh_bm_to_me`).
When adding attributes, these were always added via
`CustomData_add_layer_named` only.
Instead (if we are in mesh editmode), we need to go through
`BM_data_layer_add_named` to properly update the **BMesh** (see
`update_data_blocks`) so we have stuff available to copy back to
**Mesh** when exiting editmode.
Same is done for removing (also going through BMesh).
This is now done, DomainInfo is updated to point to BMesh (instead of
Mesh) customdata when in editmode.
Maniphest Tasks: T90026
Differential Revision: https://developer.blender.org/D11998
Diffstat (limited to 'source/blender/compositor')
0 files changed, 0 insertions, 0 deletions