[Bf-blender-cvs] [1973fd89dff] master: Fix crash adding custom normals
Campbell Barton
noreply at git.blender.org
Tue Aug 3 07:09:12 CEST 2021
Commit: 1973fd89dff7e33d76e1aa71c87444505450c058
Author: Campbell Barton
Date: Tue Aug 3 15:01:39 2021 +1000
Branches: master
https://developer.blender.org/rB1973fd89dff7e33d76e1aa71c87444505450c058
Fix crash adding custom normals
Caused by error converting this file to C++
eccdced972f42a451d0c73dfb7ce19a43c120d7f.
===================================================================
M source/blender/blenkernel/intern/mesh_normals.cc
===================================================================
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;
More information about the Bf-blender-cvs
mailing list