Fix T75297: Apply base inflates meshes with Simple subdivision

This commit is contained in:
Sergey Sharybin 2020-04-06 11:45:59 +02:00
parent 2a2d0d463a
commit 2fc30978bc
Notes: blender-bot 2023-02-14 11:18:07 +01:00
Referenced by issue #75297, Apply Base heavily inflates meshes with very low geometry.
1 changed files with 5 additions and 0 deletions

View File

@ -81,6 +81,11 @@ static float v3_dist_from_plane(float v[3], float center[3], float no[3])
void multires_reshape_apply_base_refit_base_mesh(MultiresReshapeContext *reshape_context)
{
if (reshape_context->mmd->simple) {
/* Simple subdivisions does not move base mesh verticies, so no refitting is needed. */
return;
}
Mesh *base_mesh = reshape_context->base_mesh;
MeshElemMap *pmap;