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:
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]
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue