Fix T49148: Blender Crash With B select on Skeleton Sketching

This commit is contained in:
Sergey Sharybin 2016-08-24 14:17:26 +02:00
parent 8d8316a057
commit 0ca4e39424
Notes: blender-bot 2023-02-14 08:40:26 +01:00
Referenced by issue #49148, Blender Crash With B select on Skeleton Sketching
1 changed files with 3 additions and 0 deletions

View File

@ -1954,6 +1954,9 @@ static int do_armature_box_select(ViewContext *vc, rcti *rect, bool select, bool
int index = buffer[(4 * a) + 3];
if (index != -1) {
ebone = BLI_findlink(arm->edbo, index & ~(BONESEL_ANY));
if ((index & 0xFFFF0000) == 0) {
continue;
}
if ((select == false) || ((ebone->flag & BONE_UNSELECTABLE) == 0)) {
if (index & BONESEL_TIP) {
ebone->flag |= BONE_DONE;