Fix T39210: Grid Fill is generating mesh that's inconsistent with selected edge loops
authorBastien Montagne <montagne29@wanadoo.fr>
Sun, 16 Mar 2014 15:31:19 +0000 (16:31 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Sun, 16 Mar 2014 15:31:19 +0000 (16:31 +0100)
commit0e9084d5ece71185884d7a63b3e0617254430a29
tree0d4571651cb6ce55f921f6194218568c17441d4e
parentcaf8684b5066720d4f4124092e23857dd462cb8b
Fix T39210: Grid Fill is generating mesh that's inconsistent with selected edge loops

Issue was in BLI's rotation_between_vecs_to_quat(), which did not handled correctly cases where both vectors are colinear.

Patch by Campbell Barton and me.

Issue originaly tracked down by Yan Shi, many thanks!
source/blender/blenlib/BLI_math_geom.h
source/blender/blenlib/BLI_math_vector.h
source/blender/blenlib/intern/math_geom.c
source/blender/blenlib/intern/math_geom_inline.c
source/blender/blenlib/intern/math_rotation.c
source/blender/blenlib/intern/math_vector.c