Edit mode normalize fails to respect locked groups

Add BKE_object_defgroup_flip_map_unlocked which excludes locked groups
from the flip-map.

Reviewed By: zanqdo, campbellbarton

Maniphest Tasks: T96787

Ref D15317
This commit is contained in:
Campbell Barton 2022-09-09 16:02:37 +10:00
parent 43b1624eee
commit 87a45db522
Notes: blender-bot 2023-02-13 15:53:41 +01:00
Referenced by issue #96787, Edit mode normalize fails to respect locked groups
1 changed files with 1 additions and 1 deletions

View File

@ -589,7 +589,7 @@ static int *object_defgroup_unlocked_flip_map_ex(const Object *ob,
int i, flip_num;
int *map = MEM_mallocN(defbase_tot * sizeof(int), __func__);
for (int i = 0; i < defbase_tot; i++) {
for (i = 0; i < defbase_tot; i++) {
map[i] = -1;
}