Fix T59842: Curve flat shading doesn't work
authorCampbell Barton <ideasman42@gmail.com>
Thu, 3 Jan 2019 05:56:53 +0000 (16:56 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 3 Jan 2019 05:56:53 +0000 (16:56 +1100)
commit4c7b303256823fce866cf4c886f383420efc927c
tree40a8a51649d47150b4b42f99eef4f675dfacd5aa
parentd28b29d428cc7fc7eb29f2302b5d80fc63a9f870
Fix T59842: Curve flat shading doesn't work

Calculate flat shaded normals when creating batch cache.

Note that 2.7x was using vertex normals as flat-face normals.
source/blender/draw/intern/draw_cache_impl_displist.c