diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-10-06 01:28:04 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-10-06 01:29:19 +0300 |
commit | d5e72c0e96b1e46a95bfcd2c3fc84a376fc9db7d (patch) | |
tree | fe7db737d31a736681eff41e34bcb5c98cca6f6d /source/blender/editors/armature/armature_naming.c | |
parent | c762074b7bec868ce5354606581887f5cb32bb56 (diff) |
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.
Diffstat (limited to 'source/blender/editors/armature/armature_naming.c')
-rw-r--r-- | source/blender/editors/armature/armature_naming.c | 7 |
1 files changed, 7 insertions, 0 deletions
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)); + } + } } } } |