fix issue with shrinkwrap face projection distance comparisons when using both positi...
authorCampbell Barton <ideasman42@gmail.com>
Mon, 5 Nov 2012 05:07:57 +0000 (05:07 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 5 Nov 2012 05:07:57 +0000 (05:07 +0000)
commit88c5b1408cf30f643a207f5e759793fe2d7760fd
tree0665c5ff6984893ba98e04bc9aeac14a6cc7861f
parente894549e5ee70cd40f99d9bd93984ec5419d7d33
fix issue with shrinkwrap face projection distance comparisons when using both positive and negative projection.
- don't attempt to convert the 'dist' value between local/target space, since all the projections are done in target space
  and dist isnt used afterwards. Also, this could fail with non uniform scale - overwriting ray casts with larger dist values.
- added an assert to check larger dist values never overwrite smaller ones.
- remove use of sasqrt() since the value is checked beforehand anyway.
source/blender/blenkernel/intern/shrinkwrap.c