Cleanup: remove unused MBALL_NOSEL flag

This commit is contained in:
Campbell Barton 2020-06-10 23:01:26 +10:00
parent eda58c47b8
commit 044b824c9d
3 changed files with 2 additions and 10 deletions

View File

@ -54,12 +54,10 @@ void ED_mball_editmball_load(struct Object *obedit);
/* editmball_undo.c */
void ED_mball_undosys_type(struct UndoType *ut);
#define MBALLSEL_STIFF (1 << 29)
#define MBALLSEL_RADIUS (1 << 30)
#define MBALLSEL_STIFF (1u << 30)
#define MBALLSEL_RADIUS (1u << 31)
#define MBALLSEL_ANY (MBALLSEL_STIFF | MBALLSEL_RADIUS)
#define MBALL_NOSEL (1u << 31u)
#ifdef __cplusplus
}
#endif

View File

@ -734,9 +734,6 @@ bool ED_mball_select_pick(bContext *C, const int mval[2], bool extend, bool dese
if (hitresult == -1) {
continue;
}
else if (hitresult & MBALL_NOSEL) {
continue;
}
const uint hit_object = hitresult & 0xFFFF;
if (vc.obedit->runtime.select_id != hit_object) {

View File

@ -3001,9 +3001,6 @@ static bool do_meta_box_select(ViewContext *vc, const rcti *rect, const eSelectO
if (hitresult == -1) {
continue;
}
else if (hitresult & MBALL_NOSEL) {
continue;
}
const uint hit_object = hitresult & 0xFFFF;
if (vc->obedit->runtime.select_id != hit_object) {