[Bf-blender-cvs] [d5e72c0e96b] blender2.8: Fix for ARMATURE_OT_flip_names and x-mirror

Dalai Felinto noreply at git.blender.org
Sat Oct 6 00:31:12 CEST 2018


Commit: d5e72c0e96b1e46a95bfcd2c3fc84a376fc9db7d
Author: Dalai Felinto
Date:   Fri Oct 5 19:28:04 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBd5e72c0e96b1e46a95bfcd2c3fc84a376fc9db7d

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.

===================================================================

M	source/blender/editors/armature/armature_naming.c

===================================================================

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));
+							}
+					}
 				}
 			}
 		}



More information about the Bf-blender-cvs mailing list