Cleanup: Remove use of designated initializers in C++ code

Does not compile on Windows.
This commit is contained in:
Chris Blackbourn
2022-09-06 18:28:55 +12:00
parent 6c6a53fad3
commit 3ebf6a7f38

View File

@@ -348,11 +348,6 @@ int bm_mesh_calc_uv_islands(const Scene *scene,
int island_added = 0;
BM_mesh_elem_table_ensure(bm, BM_FACE);
struct SharedUVLoopData user_data = {
.cd_loop_uv_offset = cd_loop_uv_offset,
.use_seams = use_seams,
};
int *groups_array = static_cast<int *>(
MEM_mallocN(sizeof(*groups_array) * (size_t)bm->totface, __func__));
@@ -379,6 +374,10 @@ int bm_mesh_calc_uv_islands(const Scene *scene,
}
}
struct SharedUVLoopData user_data = {0};
user_data.cd_loop_uv_offset = cd_loop_uv_offset;
user_data.use_seams = use_seams;
const int group_len = BM_mesh_calc_face_groups(bm,
groups_array,
&group_index,