Cleanup: improve comments.
authormano-wii <germano.costa@ig.com.br>
Sat, 16 Mar 2019 21:20:57 +0000 (18:20 -0300)
committermano-wii <germano.costa@ig.com.br>
Sat, 16 Mar 2019 21:20:57 +0000 (18:20 -0300)
source/blender/editors/space_view3d/view3d_draw_legacy.c

index 3c38bb6..18e7522 100644 (file)
@@ -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]));