[Bf-blender-cvs] [2fc30978bce] master: Fix T75297: Apply base inflates meshes with Simple subdivision

Sergey Sharybin noreply at git.blender.org
Mon Apr 6 12:02:33 CEST 2020


Commit: 2fc30978bce2c698e17e8c7f09e03b694fbdd805
Author: Sergey Sharybin
Date:   Mon Apr 6 11:45:59 2020 +0200
Branches: master
https://developer.blender.org/rB2fc30978bce2c698e17e8c7f09e03b694fbdd805

Fix T75297: Apply base inflates meshes with Simple subdivision

===================================================================

M	source/blender/blenkernel/intern/multires_reshape_apply_base.c

===================================================================

diff --git a/source/blender/blenkernel/intern/multires_reshape_apply_base.c b/source/blender/blenkernel/intern/multires_reshape_apply_base.c
index 90736de12e1..e67e553e8ed 100644
--- a/source/blender/blenkernel/intern/multires_reshape_apply_base.c
+++ b/source/blender/blenkernel/intern/multires_reshape_apply_base.c
@@ -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;



More information about the Bf-blender-cvs mailing list