Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-10-06 01:28:04 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-10-06 01:29:19 +0300
commitd5e72c0e96b1e46a95bfcd2c3fc84a376fc9db7d (patch)
treefe7db737d31a736681eff41e34bcb5c98cca6f6d /source/blender/editors/armature/armature_naming.c
parentc762074b7bec868ce5354606581887f5cb32bb56 (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.c7
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));
+ }
+ }
}
}
}