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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user