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:
authorSergey Sharybin <sergey.vfx@gmail.com>2020-03-19 12:08:08 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2020-03-19 12:08:48 +0300
commit53674fb255d92da4b18fa844130a58ea9b57ff9d (patch)
tree81be49b5ba5223086ecd5fd784efe31002c3c516
parent9dfc480ad10a53122021f7aefd0ee551fb114fa3 (diff)
Multires: Add missing context initialization
Might have caused access to uninitialized memory when foreach() would have failed for some reason.
-rw-r--r--source/blender/blenkernel/intern/multires_reshape_smooth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/multires_reshape_smooth.c b/source/blender/blenkernel/intern/multires_reshape_smooth.c
index cbc6d821e26..2f57b5fc569 100644
--- a/source/blender/blenkernel/intern/multires_reshape_smooth.c
+++ b/source/blender/blenkernel/intern/multires_reshape_smooth.c
@@ -374,6 +374,8 @@ static void context_init(MultiresReshapeSmoothContext *reshape_smooth_context,
reshape_smooth_context->geometry.vertices = NULL;
reshape_smooth_context->geometry.num_corners = 0;
reshape_smooth_context->geometry.corners = NULL;
+ reshape_smooth_context->geometry.num_faces = 0;
+ reshape_smooth_context->geometry.faces = NULL;
reshape_smooth_context->reshape_subdiv = NULL;
reshape_smooth_context->base_surface_grids = NULL;