Fix T56695: Selecting an occluded object in xray causes crash

This commit is contained in:
Clément Foucault
2018-09-05 12:53:14 +02:00
parent 0db545554a
commit be00a22c23

View File

@@ -1027,6 +1027,9 @@ int view3d_opengl_select(
drw_select_loop_pass, &drw_select_loop_user_data,
object_filter.fn, object_filter.user_data);
hits = drw_select_loop_user_data.hits;
/* FIX: This cleanup the state before doing another selection pass.
* (see T56695) */
GPU_select_cache_end();
}
if (hits == 0) {