Multires: Fix memory leak on reshape

Was happening when number of vertices didn't match.
This commit is contained in:
2018-09-11 17:36:39 +02:00
parent 57f9e31bf4
commit d495916547

View File

@@ -1994,6 +1994,7 @@ bool BKE_subdiv_foreach_subdiv_geometry(
ctx.num_subdiv_loops,
ctx.num_subdiv_polygons))
{
subdiv_foreach_ctx_free(&ctx);
return false;
}
}