diff options
author | Hans Goudey <h.goudey@me.com> | 2021-07-30 21:28:55 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-07-30 21:28:55 +0300 |
commit | 54bd5efa6881dbc59f732a17593f4cf03037f9a0 (patch) | |
tree | a271abdcfca1dd57a952bca0865ae057a56cc94a /source/blender/bmesh/intern/bmesh_iterators.h | |
parent | 549e2b7539826ec1d4532b9fd07118ace82195ae (diff) |
Fix build error in debug builds and uninitialized structs
This BMesh iterator hadn't been used in C++ code yet, and needed
a macro for a proper cast. The parameter structs need to be initialized
when declared without designated initializers.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_iterators.h')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_iterators.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_iterators.h b/source/blender/bmesh/intern/bmesh_iterators.h index 4bb83492548..ab4427e6968 100644 --- a/source/blender/bmesh/intern/bmesh_iterators.h +++ b/source/blender/bmesh/intern/bmesh_iterators.h @@ -89,7 +89,7 @@ extern const char bm_iter_itype_htype_map[BM_ITYPE_MAX]; # define BM_ITER_MESH_MUTABLE(ele, ele_next, iter, bm, itype) \ for (BM_CHECK_TYPE_ELEM_ASSIGN(ele) = BM_iter_new(iter, bm, itype, NULL); \ ele ? ((void)((iter)->count = BM_iter_mesh_count(itype, bm)), \ - (void)(ele_next = BM_iter_step(iter)), \ + (void)(BM_CHECK_TYPE_ELEM_ASSIGN(ele_next) = BM_iter_step(iter)), \ 1) : \ 0; \ BM_CHECK_TYPE_ELEM_ASSIGN(ele) = ele_next) |