diff options
author | Rohan Rathi <rohanrathi08@gmail.com> | 2018-08-09 16:06:38 +0300 |
---|---|---|
committer | Rohan Rathi <rohanrathi08@gmail.com> | 2018-08-09 16:08:07 +0300 |
commit | 42c2066d08216bb57492fef441ee20217444d395 (patch) | |
tree | 487b5881f1c686b0d3c96baf9df152fe56e4568d /source/blender | |
parent | aa41c866364178fa0057bd93fd17718f59aa101a (diff) |
Fixed custom shading not updating in Edit Mode
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c index 87737fae820..ba16dab0623 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -427,7 +427,9 @@ static MeshRenderData *mesh_render_data_create_ex( int totloop = bm->totloop; if (is_auto_smooth) { rdata->loop_normals = MEM_mallocN(sizeof(*rdata->loop_normals) * totloop, __func__); - BM_loops_calc_normal_vcos(bm, NULL, NULL, NULL, true, split_angle, rdata->loop_normals, NULL, NULL, -1, false); + int cd_loop_clnors_offset = CustomData_get_clone_layer_index(&bm->ldata, CD_CUSTOMLOOPNORMAL); + BM_loops_calc_normal_vcos(bm, NULL, NULL, NULL, true, split_angle, rdata->loop_normals, NULL, NULL, + cd_loop_clnors_offset, false); } rdata->loop_len = totloop; bm_ensure_types |= BM_LOOP; |