Multires: Add missing context initialization

Might have caused access to uninitialized memory when foreach()
would have failed for some reason.
This commit is contained in:
Sergey Sharybin
2020-03-19 10:08:08 +01:00
parent 9dfc480ad1
commit 53674fb255

View File

@@ -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;