Fix/workaround issues in pose and edit mode

Edit mode was unable to select, pose mode was unable to move bones.
This commit is contained in:
2018-11-28 10:36:07 +01:00
parent ff0a29df14
commit 6d2e2e30d5

View File

@@ -1150,7 +1150,10 @@ static bool object_bases_iterator_is_valid_ex(View3D *v3d, Base *base, const int
return false;
}
}
/* Any flag satisfies the condition. */
if (flags == ~0) {
return (base->flag != 0);
}
/* flags may be more than one flag, so we can't check != 0. */
return ((base->flag & flags) == flags);
}