Fix #31193: Normals don't have any Z component
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 1 May 2012 11:01:24 +0000 (11:01 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 1 May 2012 11:01:24 +0000 (11:01 +0000)
commit6527f42b6bd1b918c5e7b0c865024c14806ac1ae
tree998ee6e8fb73602bb34dce34949754559ee4a5b9
parent3ee136910d1c6b70e7c99ebb40798d1706c13d9e
Fix #31193: Normals don't have any Z component

Issue was caused by heavily non-uniform scale applied on object.
Run scale correction on face and vertex normals draw if there's non-uniform scale.
source/blender/blenlib/BLI_math_matrix.h
source/blender/blenlib/intern/math_matrix.c
source/blender/editors/space_view3d/drawobject.c