Multires: Fix memory leak on reshape
Was happening when number of vertices didn't match.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user