Fix for ARMATURE_OT_flip_names and x-mirror
There was a reason this was using CTX_DATA_BEGIN in the first place.
Issue introduced on 47cf8bd928
.
This commit is contained in:
parent
c762074b7b
commit
d5e72c0e96
|
@ -427,6 +427,13 @@ static int armature_flip_names_exec(bContext *C, wmOperator *op)
|
|||
if (EBONE_VISIBLE(arm, ebone)) {
|
||||
if (ebone->flag & BONE_SELECTED) {
|
||||
BLI_addtail(&bones_names, BLI_genericNodeN(ebone->name));
|
||||
|
||||
if (arm->flag & ARM_MIRROR_EDIT) {
|
||||
EditBone *flipbone = ED_armature_ebone_get_mirrored(arm->edbo, ebone);
|
||||
if ((flipbone) && !(flipbone->flag & BONE_SELECTED)) {
|
||||
BLI_addtail(&bones_names, BLI_genericNodeN(flipbone->name));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue