[Bf-blender-cvs] [7ac0c87473c] master: Fix T67800: Incorrect behavior of simple Subdivision Surface

Sergey Sharybin noreply at git.blender.org
Mon Jul 29 11:27:17 CEST 2019


Commit: 7ac0c87473cd473dbc305fc07adc43711fca0593
Author: Sergey Sharybin
Date:   Mon Jul 29 11:26:16 2019 +0200
Branches: master
https://developer.blender.org/rB7ac0c87473cd473dbc305fc07adc43711fca0593

Fix T67800: Incorrect behavior of simple Subdivision Surface

Stupid typo in an original fix, need to operate in 3D, not in 2D.

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

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

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

diff --git a/source/blender/blenkernel/intern/subdiv_mesh.c b/source/blender/blenkernel/intern/subdiv_mesh.c
index a6feae2430d..1ff9140681f 100644
--- a/source/blender/blenkernel/intern/subdiv_mesh.c
+++ b/source/blender/blenkernel/intern/subdiv_mesh.c
@@ -1098,7 +1098,7 @@ static void subdiv_mesh_vertex_of_loose_edge(const struct SubdivForeachContext *
     const MVert *coarse_mvert = coarse_mesh->mvert;
     const MVert *vert_1 = &coarse_mvert[coarse_edge->v1];
     const MVert *vert_2 = &coarse_mvert[coarse_edge->v2];
-    interp_v2_v2v2(subdiv_vertex->co, vert_1->co, vert_2->co, u);
+    interp_v3_v3v3(subdiv_vertex->co, vert_1->co, vert_2->co, u);
   }
   else {
     float points[4][3];



More information about the Bf-blender-cvs mailing list