diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-03-19 12:08:08 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-03-19 12:08:48 +0300 |
commit | 53674fb255d92da4b18fa844130a58ea9b57ff9d (patch) | |
tree | 81be49b5ba5223086ecd5fd784efe31002c3c516 /source/blender/blenkernel/intern/multires_reshape_smooth.c | |
parent | 9dfc480ad10a53122021f7aefd0ee551fb114fa3 (diff) |
Multires: Add missing context initialization
Might have caused access to uninitialized memory when foreach()
would have failed for some reason.
Diffstat (limited to 'source/blender/blenkernel/intern/multires_reshape_smooth.c')
-rw-r--r-- | source/blender/blenkernel/intern/multires_reshape_smooth.c | 2 |
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; |