Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2019-03-17 00:20:57 +0300
committermano-wii <germano.costa@ig.com.br>2019-03-17 00:20:57 +0300
commitcf5097d71f17356810f04e052325792fca77de55 (patch)
tree1eed6ba346a158be4ea73bbf80cb4859c1a5e23a /source/blender/editors/space_view3d
parent8b62f203d9d0420b0d44c1c3a58efa350f8a9fcd (diff)
Cleanup: improve comments.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/view3d_draw_legacy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw_legacy.c b/source/blender/editors/space_view3d/view3d_draw_legacy.c
index 3c38bb6d909..18e7522ea1c 100644
--- a/source/blender/editors/space_view3d/view3d_draw_legacy.c
+++ b/source/blender/editors/space_view3d/view3d_draw_legacy.c
@@ -386,15 +386,14 @@ uint ED_view3d_select_id_read_nearest(
/* we got a hit */
int hit_co[2], center_co[2];
- /* get x,y pixel coords from the offset
- * (manhatten distance in keeping with other screen-based selection) */
+ /* get x,y pixel coords from the offset */
hit_co[0] = (int)(tbuf - buf) % (int)height;
hit_co[1] = (int)(tbuf - buf) / (int)height;
center_co[0] = (int)(height / 2);
center_co[1] = (int)(width / 2);
- /* for more efficiency, just sum the x, y pixel dist coords */
+ /* manhatten distance in keeping with other screen-based selection */
*r_dist = (float)(abs(hit_co[0] - center_co[0]) +
abs(hit_co[1] - center_co[1]));