Fix #32198: UV unwrap of half a UV sphere would not give a perfect sphere as a
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 24 Aug 2012 13:29:48 +0000 (13:29 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 24 Aug 2012 13:29:48 +0000 (13:29 +0000)
commitb30da4d58f4f5b24f902d8f2fa7d04e4406536ac
tree2e8e3424791b62f60e1cd7e4fc43b2f71ffa1a98
parentaba2754a1968fdbdcf69556c3cc1cedba6d76fda
Fix #32198: UV unwrap of half a UV sphere would not give a perfect sphere as a
result. This wasn't really guaranteed anyway, because of numerical precision and
possible asymmetry in the triangulation, but we can do a bit better.

Now we bias the choice of how to split a quad into two triangles slightly
towards one of two possibilities, so that in case they are equal, floating point
errors do not decide the direction and symmetry is preserved.
source/blender/editors/uvedit/uvedit_parametrizer.c