diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-08-04 00:41:16 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-08-05 15:30:55 +0300 |
commit | f9cf8151603dc3e3cad09e79027e8f4d89ee1ae7 (patch) | |
tree | 0bc2a5a6abf6241030f485e56b42d287feeb8cab /source/blender/editors/space_view3d/view3d_draw_legacy.c | |
parent | 38d7e14dc8bd1246a95570239971f61056f76227 (diff) |
ED_view3D: Remove and replace `ED_view3d_select_id_read`
It is very similar to `ED_view3d_select_id_read_rect`.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_draw_legacy.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw_legacy.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw_legacy.c b/source/blender/editors/space_view3d/view3d_draw_legacy.c index 39cbc67f996..d16d90fae01 100644 --- a/source/blender/editors/space_view3d/view3d_draw_legacy.c +++ b/source/blender/editors/space_view3d/view3d_draw_legacy.c @@ -263,30 +263,6 @@ int ED_view3d_backbuf_sample_size_clamp(ARegion *ar, const float dist) return (int)min_ff(ceilf(dist), (float)max_ii(ar->winx, ar->winx)); } -/* reads full rect, converts indices */ -uint *ED_view3d_select_id_read(int xmin, int ymin, int xmax, int ymax, uint *r_buf_len) -{ - if (UNLIKELY((xmin > xmax) || (ymin > ymax))) { - return NULL; - } - - const rcti rect = { - .xmin = xmin, - .xmax = xmax + 1, - .ymin = ymin, - .ymax = ymax + 1, - }; - - uint buf_len; - uint *buf = ED_view3d_select_id_read_rect(&rect, &buf_len); - - if (r_buf_len) { - *r_buf_len = buf_len; - } - - return buf; -} - /* *********************** */ void view3d_update_depths_rect(ARegion *ar, ViewDepths *d, rcti *rect) |