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:
authorJoshua Leung <aligorith@gmail.com>2007-11-22 02:22:56 +0300
committerJoshua Leung <aligorith@gmail.com>2007-11-22 02:22:56 +0300
commitcfb5eb1b8fff5d8a6b9def6504721ea90d4b4ae1 (patch)
tree2024c82dc0a514d95abe009c0e2479c778da7ac6 /source/blender/src/poseobject.c
parent818bfcca63a145f626e432c8217513610e8aff85 (diff)
Patch #7794: X-Axis Mirror Support for Various Operations in Armature EditMode
Patch by: Teppo Kansala (teppoka) This patch adds X-Axis Mirror support for the following tools: - Delete Bone (X) - Recalculate Bone Roll Angles... (Ctrl-N) - Duplicate Bone (Shift-D) - Clear Parent... (Alt-P) - Move Bone To Layer (M)
Diffstat (limited to 'source/blender/src/poseobject.c')
-rw-r--r--source/blender/src/poseobject.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/src/poseobject.c b/source/blender/src/poseobject.c
index c0835c84e62..68af3d7c64c 100644
--- a/source/blender/src/poseobject.c
+++ b/source/blender/src/poseobject.c
@@ -917,6 +917,7 @@ void pose_movetolayer(void)
else if (G.obedit) {
/* the check for editbone layer moving needs to occur before posemode one to work */
EditBone *ebo;
+ EditBone *flipBone;
for (ebo= G.edbo.first; ebo; ebo= ebo->next) {
if (arm->layer & ebo->layer) {
@@ -931,8 +932,14 @@ void pose_movetolayer(void)
for (ebo= G.edbo.first; ebo; ebo= ebo->next) {
if (arm->layer & ebo->layer) {
- if (ebo->flag & BONE_SELECTED)
+ if (ebo->flag & BONE_SELECTED) {
ebo->layer= lay;
+ if (arm->flag & ARM_MIRROR_EDIT) {
+ flipBone = armature_bone_get_mirrored(ebo);
+ if (flipBone)
+ flipBone->layer = lay;
+ }
+ }
}
}