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:
Diffstat (limited to 'source/blender/src/editview.c')
-rw-r--r--source/blender/src/editview.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c
index 22d738fbafd..c3f9f5e3243 100644
--- a/source/blender/src/editview.c
+++ b/source/blender/src/editview.c
@@ -1249,14 +1249,14 @@ void borderselect(void)
index = buffer[(4*a)+3];
if (val==LEFTMOUSE){
if (index != -1){
- bone = get_indexed_bone(G.obpose->data, index &~(BONESEL_TIP|BONESEL_ROOT));
+ bone = get_indexed_bone(G.obpose, index &~(BONESEL_TIP|BONESEL_ROOT));
bone->flag |= BONE_SELECTED;
select_actionchannel_by_name(G.obpose->action, bone->name, 1);
}
}
else{
if (index != -1){
- bone = get_indexed_bone(G.obpose->data, index &~(BONESEL_TIP|BONESEL_ROOT));
+ bone = get_indexed_bone(G.obpose, index &~(BONESEL_TIP|BONESEL_ROOT));
bone->flag &= ~BONE_SELECTED;
select_actionchannel_by_name(G.obpose->action, bone->name, 0);
}
@@ -1438,20 +1438,20 @@ void borderselect(void)
for (a=0; a<hits; a++){
index = buffer[(4*a)+3];
if (val==LEFTMOUSE){
- if (index!=-1){
- ebone = BLI_findlink(&G.edbo, index & ~(BONESEL_TIP|BONESEL_ROOT));
- if (index & BONESEL_TIP)
+ if (index!=-1) {
+ ebone = BLI_findlink(&G.edbo, index & ~(BONESEL_ANY));
+ if (index & (BONESEL_TIP|BONESEL_BONE))
ebone->flag |= BONE_TIPSEL;
- if (index & BONESEL_ROOT)
+ if (index & (BONESEL_ROOT|BONESEL_BONE))
ebone->flag |= BONE_ROOTSEL;
}
}
else{
if (index!=-1){
- ebone = BLI_findlink(&G.edbo, index & ~(BONESEL_TIP|BONESEL_ROOT));
- if (index & BONESEL_TIP)
+ ebone = BLI_findlink(&G.edbo, index & ~(BONESEL_ANY));
+ if (index & (BONESEL_TIP|BONESEL_BONE))
ebone->flag &= ~BONE_TIPSEL;
- if (index & BONESEL_ROOT)
+ if (index & (BONESEL_ROOT|BONESEL_BONE))
ebone->flag &= ~BONE_ROOTSEL;
}
}