knife sort_by_frac_along was re-calculating the reference factor for every test,...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 3 May 2013 05:57:33 +0000 (05:57 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 3 May 2013 05:57:33 +0000 (05:57 +0000)
commit2a78a1436934590d4762e79c50e85be466d3914f
tree420d0181bd375069300e608ad42b9f439afbe9cc
parenta5d6820b6d96b2f379e3f5e118b80cfc486b425d
knife sort_by_frac_along was re-calculating the reference factor for every test, change to only calculate once and use line_point_factor_v3().
also add zero division check for line_point_factor_v3() since the 2d version already checked for this.
source/blender/blenlib/intern/math_geom.c
source/blender/editors/mesh/editmesh_knife.c