ProfileWidget: Updated insert algorithm.
authorHans Goudey <h.goudey@me.com>
Mon, 24 Jun 2019 04:38:23 +0000 (00:38 -0400)
committerHans Goudey <h.goudey@me.com>
Mon, 24 Jun 2019 04:38:23 +0000 (00:38 -0400)
commit65aa1620a134ee855152c2c15c8727fb184a6959
treedbe5878b8e6bcf8635475e69a908cf4780329b5e
parentd22601efb78b5822fca27c28fef79dce8e1b4427
ProfileWidget: Updated insert algorithm.

The choice of neighbors for the inserted point now uses the minimum
distance to the other line segments rather than their X positions.

Luckily there is a dist_squared_to_line_segment_v2 already in Blender!
source/blender/blenkernel/intern/profile_path.c