WIP #104054 Symmetize visible edit bones if nothing has been selected #105385

Closed
Denys Hsu wants to merge 3 commits from cgtinker/blender:104054-symmetrize-armature-nothing-selected into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 4 additions and 0 deletions
Showing only changes of commit c339aa19d1 - Show all commits

View File

@ -1132,6 +1132,9 @@ static int armature_symmetrize_exec(bContext *C, wmOperator *op)
/* if the name matches, we don't have the potential to be mirrored, just skip */
ebone_iter->flag &= ~(BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL);
}
else if (STREQ(name_flip, ebone_iter->name) && (!is_selected)) {
continue;
}
else {
EditBone *ebone = ED_armature_ebone_find_name(arm->edbo, name_flip);
if (ebone) {
@ -1180,6 +1183,7 @@ static int armature_symmetrize_exec(bContext *C, wmOperator *op)
}
}
else {
// select ebone if not availe at the other side but contains .L or .R
ebone_iter->flag |= (BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL);
}
}