Blender Git Commit Log

Git Commits -> Revision 33569fc

July 30, 2021, 14:56 (GMT)
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

Commit Details:

Full Hash: 33569fc1f14612f33fe3f6e54f69c80e22c7c1b0
Parent Commit: 4d25d74
Committed By: Fabian Schempp
Lines Changed: +62, -12

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2021