From d5e72c0e96b1e46a95bfcd2c3fc84a376fc9db7d Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 5 Oct 2018 19:28:04 -0300 Subject: [PATCH] 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 47cf8bd92847c6837e7af5bd0edbfe1d62fdcaf5. --- source/blender/editors/armature/armature_naming.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/blender/editors/armature/armature_naming.c b/source/blender/editors/armature/armature_naming.c index dd9cd0f9d05..0135df646f9 100644 --- a/source/blender/editors/armature/armature_naming.c +++ b/source/blender/editors/armature/armature_naming.c @@ -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)); + } + } } } }