diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-06-18 21:20:22 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-06-18 21:20:36 +0300 |
commit | d52b7dbe2695c673b3bad091b55893413e7b022b (patch) | |
tree | 636cef11d1ae4cc1f8b5d1c381cb6b2bf6390a3a /source/blender/bmesh | |
parent | 3e6f2c7a99fc82b9b9554638b7026e32294b13d9 (diff) |
Fix T89261: Crash when calculating bmesh tessellation
Error passing `false` instead of a `BMeshCalcTessellation_Params` struct.
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_mesh_tessellate.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_mesh_tessellate.c b/source/blender/bmesh/intern/bmesh_mesh_tessellate.c index 7509f9eed70..18ec83057e2 100644 --- a/source/blender/bmesh/intern/bmesh_mesh_tessellate.c +++ b/source/blender/bmesh/intern/bmesh_mesh_tessellate.c @@ -282,7 +282,11 @@ void BM_mesh_calc_tessellation_ex(BMesh *bm, void BM_mesh_calc_tessellation(BMesh *bm, BMLoop *(*looptris)[3]) { - BM_mesh_calc_tessellation_ex(bm, looptris, false); + BM_mesh_calc_tessellation_ex(bm, + looptris, + &(const struct BMeshCalcTessellation_Params){ + .face_normals = false, + }); } /** \} */ |