diff options
author | Jacques Lucke <jacques@blender.org> | 2021-04-30 17:22:24 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-04-30 17:23:02 +0300 |
commit | 313a1c072d6d730e4665350befb6cfae5e03b1aa (patch) | |
tree | 79bc6a80bed093b3fd16daed330d4e844ed7dfb1 /source/blender/editors/object/object_remesh.c | |
parent | e7274f9f2d4191b3b1b77448e2c1ea6f1f4aa97c (diff) |
BLI: support removing Map elements during iteration
While it was technically safe to call Map.remove while iterating over
a map, it wasn't really designed to work. Also it wasn't very efficient,
because to remove the element, the map would have to search it
again. Now it is possible to remove an element given an iterator
into the map. It is safe to remove the element while iterating over
the map. Obviously, the removed element must not be accessed
anymore after it has been removed.
Diffstat (limited to 'source/blender/editors/object/object_remesh.c')
0 files changed, 0 insertions, 0 deletions