Fix T61685 Curve extrusion looses flat shading in certain viewport shading

This was caused by default surface batch not using loop normals.
This commit is contained in:
Clément Foucault 2020-02-04 19:31:00 +01:00
parent 86fb8062d7
commit c19112d755
Notes: blender-bot 2023-02-14 11:35:46 +01:00
Referenced by issue #61685, Curve extrusion looses flat shading in certain viewport shading color settings [displays smooth shaded then]
1 changed files with 1 additions and 2 deletions

View File

@ -949,8 +949,7 @@ void DRW_curve_batch_cache_create_requested(Object *ob)
/* Init batches and request VBOs & IBOs */
if (DRW_batch_requested(cache->batch.surfaces, GPU_PRIM_TRIS)) {
DRW_ibo_request(cache->batch.surfaces, &cache->ibo.surfaces_tris);
DRW_vbo_request(cache->batch.surfaces, &cache->ordered.pos_nor);
DRW_vbo_request(cache->batch.surfaces, &cache->ordered.loop_pos_nor);
}
if (DRW_batch_requested(cache->batch.surfaces_edges, GPU_PRIM_LINES)) {
DRW_ibo_request(cache->batch.surfaces_edges, &cache->ibo.surfaces_lines);