forked from bartvdbraak/blender
If you are in PoseMode and use BKEY the selection is now limited to the
bones of the armature.
This commit is contained in:
parent
adae1a7b77
commit
71ac221ea3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user