Fix T77560: Bone selection crashes

The was caused by 8b347fc2cd as the old BONESEL_NOSEL flag
handled the -1 case (used for none).

Instead of checking for -1, remove these elements from the array
as selection code makes decisions based on the number of hits detected.
This commit is contained in:
2020-06-10 17:50:11 +10:00
parent edb4e553f5
commit fc8a7a44b2
5 changed files with 56 additions and 4 deletions

View File

@@ -544,6 +544,13 @@ int view3d_opengl_select(struct ViewContext *vc,
const struct rcti *input,
eV3DSelectMode select_mode,
eV3DSelectObjectFilter select_filter);
int view3d_opengl_select_with_id_filter(struct ViewContext *vc,
unsigned int *buffer,
unsigned int bufsize,
const struct rcti *input,
eV3DSelectMode select_mode,
eV3DSelectObjectFilter select_filter,
uint select_id);
/* view3d_select.c */
float ED_view3d_select_dist_px(void);