diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-08-03 08:01:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-08-03 08:01:39 +0300 |
commit | 1973fd89dff7e33d76e1aa71c87444505450c058 (patch) | |
tree | 4a0a9967e5955339258bb4d36306f544f3128093 | |
parent | 04c75c5ce7699a1502a7c2212d4aa57166465514 (diff) |
Fix crash adding custom normals
Caused by error converting this file to C++
eccdced972f42a451d0c73dfb7ce19a43c120d7f.
-rw-r--r-- | source/blender/blenkernel/intern/mesh_normals.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/mesh_normals.cc b/source/blender/blenkernel/intern/mesh_normals.cc index 8740baa5aef..1438d737b79 100644 --- a/source/blender/blenkernel/intern/mesh_normals.cc +++ b/source/blender/blenkernel/intern/mesh_normals.cc @@ -987,7 +987,7 @@ void BKE_edges_sharp_from_angle_set(const struct MVert *mverts, /* Simple mapping from a loop to its polygon index. */ int *loop_to_poly = (int *)MEM_malloc_arrayN((size_t)numLoops, sizeof(*loop_to_poly), __func__); - LoopSplitTaskDataCommon common_data; + LoopSplitTaskDataCommon common_data = {}; common_data.mverts = mverts; common_data.medges = medges; common_data.mloops = mloops; |