Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Blackbourn <chrisbblend@gmail.com>2022-09-06 09:28:55 +0300
committerChris Blackbourn <chrisbblend@gmail.com>2022-09-06 09:31:01 +0300
commit3ebf6a7f38e9ef0e74073f442d369dc426912ac9 (patch)
treeed42f088c5df457961f0bfee8045f42ca4b00b9d /source/blender/editors/uvedit/uvedit_islands.cc
parent6c6a53fad357ad63d8128c33da7a84f172ef0b63 (diff)
Cleanup: Remove use of designated initializers in C++ code
Does not compile on Windows.
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_islands.cc')
-rw-r--r--source/blender/editors/uvedit/uvedit_islands.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/editors/uvedit/uvedit_islands.cc b/source/blender/editors/uvedit/uvedit_islands.cc
index 836d997f6e4..42415be656a 100644
--- a/source/blender/editors/uvedit/uvedit_islands.cc
+++ b/source/blender/editors/uvedit/uvedit_islands.cc
@@ -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,