forked from bartvdbraak/blender
Fix T49148: Blender Crash With B select on Skeleton Sketching
This commit is contained in:
parent
8d8316a057
commit
0ca4e39424
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user