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-02-06 06:38:32 +0300
committerJoshua Leung <aligorith@gmail.com>2007-02-06 06:38:32 +0300
commitefaa6990ea74143b29c32d1690ed52e023598176 (patch)
tree5a006eb0e0d15df9866a731c97624770254787ac /source/blender/src/buttons_editing.c
parentb67a6ac5b7b1cc262e9278b1d15f00c66d6855ba (diff)
== Armature Buttons - ChildOf menu ==
This menu now respects armature-layers, so that it works better on armatures with a lot of bones.
Diffstat (limited to 'source/blender/src/buttons_editing.c')
-rw-r--r--source/blender/src/buttons_editing.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c
index 5ae0d8dc8ef..52acf7b662f 100644
--- a/source/blender/src/buttons_editing.c
+++ b/source/blender/src/buttons_editing.c
@@ -3300,6 +3300,7 @@ static void parnr_to_editbone_cb(void *bonev, void *arg2_unused)
static void build_bonestring (char *string, EditBone *bone)
{
+ bArmature *arm= G.obedit->data;
EditBone *curBone;
EditBone *pBone;
int skip=0;
@@ -3331,6 +3332,9 @@ static void build_bonestring (char *string, EditBone *bone)
break;
}
}
+ if ((arm->layer & curBone->layer) == 0) {
+ skip= 1;
+ }
if (skip)
continue;