[Bf-blender-cvs] [70a60061e59] blender2.8: Fix crash opening 01_015_A.lighting.blend - DL_INDEX3 displist have a single normal, not one per vertex!

Bastien Montagne noreply at git.blender.org
Mon May 14 17:41:17 CEST 2018


Commit: 70a60061e59fde7bb0e9cf9585365238b8c1d58f
Author: Bastien Montagne
Date:   Mon May 14 17:39:41 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB70a60061e59fde7bb0e9cf9585365238b8c1d58f

Fix crash opening 01_015_A.lighting.blend - DL_INDEX3 displist have a single normal, not one per vertex!

===================================================================

M	source/blender/draw/intern/draw_cache_impl_displist.c

===================================================================

diff --git a/source/blender/draw/intern/draw_cache_impl_displist.c b/source/blender/draw/intern/draw_cache_impl_displist.c
index 627fb38d9d6..09531220d9a 100644
--- a/source/blender/draw/intern/draw_cache_impl_displist.c
+++ b/source/blender/draw/intern/draw_cache_impl_displist.c
@@ -285,7 +285,7 @@ Gwn_Batch **DRW_displist_batch_calc_tri_pos_normals_and_uv_split_by_material(Lis
 					displist_vertbuf_attr_set_tri_pos_normals_and_uv(
 					        &pos_step[col], &nor_step[col], &uv_step[col],
 					        verts[idx[0]], verts[idx[2]], verts[idx[1]],
-					        nors[idx[0]], nors[idx[2]], nors[idx[1]],
+					        dl->nors, dl->nors, dl->nors,
 					        uv[0], uv[1], uv[2]);
 				}
 			}



More information about the Bf-blender-cvs mailing list