From d5fc1b9ba4b853cbcbe2d8891242a2c06fc255c4 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 2 May 2023 17:24:00 -0400 Subject: [PATCH] Fix #107505: Temporary stack not cleared in BMesh normal calculation Mistake in f8eebd3b25a52d055736. --- source/blender/bmesh/intern/bmesh_mesh_normals.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/bmesh/intern/bmesh_mesh_normals.cc b/source/blender/bmesh/intern/bmesh_mesh_normals.cc index 0bd765a8a02..06bef52a86e 100644 --- a/source/blender/bmesh/intern/bmesh_mesh_normals.cc +++ b/source/blender/bmesh/intern/bmesh_mesh_normals.cc @@ -703,6 +703,7 @@ static int bm_mesh_loops_calc_normals_for_loop(BMesh *bm, } BKE_lnor_space_define(lnor_space, lnor, vec_org, vec_next, *edge_vectors); + edge_vectors->clear(); if (has_clnors) { if (clnors_invalid) {