UV: internal changes to picking
authorCampbell Barton <ideasman42@gmail.com>
Mon, 12 Mar 2018 02:46:25 +0000 (13:46 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 12 Mar 2018 02:57:38 +0000 (13:57 +1100)
commit1966924467c901d541bfe3f510d21a20c29842e3
treea9549221176b32af95d3d582e03790d0de28a536
parent2c9c22df26dfdcf03bb308fdf35294ed79c2d0e5
UV: internal changes to picking

Nothing user visible, only things needed for multi-object support,
making picking functions more flexible too.

- Support passing in an initialized hit-struct,
  so it's possible to do multiple nearest calls on the same hit data.
- Replace manhattan distance w/ squared distance
  so they can be compared.
- Return success to detect changes to a hit-data
  which might already be initialized (also more readable).
source/blender/editors/sculpt_paint/sculpt_uv.c
source/blender/editors/uvedit/uvedit_intern.h
source/blender/editors/uvedit/uvedit_ops.c
source/blender/editors/uvedit/uvedit_smart_stitch.c