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
path: root/source
diff options
context:
space:
mode:
authorDiego Borghetti <bdiego@gmail.com>2007-04-26 18:03:28 +0400
committerDiego Borghetti <bdiego@gmail.com>2007-04-26 18:03:28 +0400
commit71ac221ea35dad82daca45f91a51625641ab1196 (patch)
tree7c64bd9240178bbdd8f6c029a38e221e53dc0398 /source
parentadae1a7b7731665baf522ae66c8f1a4eed612553 (diff)
If you are in PoseMode and use BKEY the selection is now limited to the
bones of the armature.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/editview.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c
index 086abbaa7a4..d367ae051a5 100644
--- a/source/blender/src/editview.c
+++ b/source/blender/src/editview.c
@@ -1782,7 +1782,14 @@ void borderselect(void)
unsigned int *vbuffer=NULL; /* selection buffer */
unsigned int *col; /* color in buffer */
short selecting = 0;
-
+ Object *ob= OBACT;
+ int bone_only;
+
+ if((ob) && (ob->flag & OB_POSEMODE))
+ bone_only= 1;
+ else
+ bone_only= 0;
+
if (val==LEFTMOUSE)
selecting = 1;
@@ -1822,7 +1829,7 @@ void borderselect(void)
}
}
}
- else {
+ else if(!bone_only) {
if (selecting)
select_base_v3d(base, BA_SELECT);
else