Commit: 328988960a25a811f78b2057959ed78f96442125
Author: ishbosamiya
Date:   Tue Jul 9 00:47:17 2019 +0530
Branches: soc-2019-adaptive-cloth
https://developer.blender.org/rB328988960a25a811f78b2057959ed78f96442125

Cloth: silence print statements

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

M       source/blender/blenkernel/intern/cloth_remeshing.cpp

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

diff --git a/source/blender/blenkernel/intern/cloth_remeshing.cpp 
b/source/blender/blenkernel/intern/cloth_remeshing.cpp
index 3546cd26056..a7d6aadd96c 100644
--- a/source/blender/blenkernel/intern/cloth_remeshing.cpp
+++ b/source/blender/blenkernel/intern/cloth_remeshing.cpp
@@ -941,10 +941,12 @@ static void 
cloth_remeshing_remove_vertex_from_cloth(Cloth *cloth, BMVert *v)
 {
   int v_index = cloth_remeshing_find_cloth_vertex_index(v, cloth->verts, 
cloth->mvert_num);
   cloth->verts[v_index] = cloth->verts[cloth->mvert_num - 1];
+#if 0
   printf("removed: %f %f %f\n",
          cloth->verts[cloth->mvert_num - 1].x[0],
          cloth->verts[cloth->mvert_num - 1].x[1],
          cloth->verts[cloth->mvert_num - 1].x[2]);
+#endif
   cloth->mvert_num--;
 }
 
@@ -979,10 +981,12 @@ static bool cloth_remeshing_vert_on_seam_test(BMesh *bm, 
BMVert *v)
 static BMVert *cloth_remeshing_collapse_edge(Cloth *cloth, BMesh *bm, BMEdge 
*e)
 {
   if (cloth_remeshing_vert_on_seam_test(bm, e->v1)) {
+#if 0
     printf("didn't collapse edge due to vert on seam: %f, %f, %f\n",
            e->v1->co[0],
            e->v1->co[1],
            e->v1->co[2]);
+#endif
     return NULL;
   }
   BMVert v1 = *e->v1;
@@ -1070,7 +1074,7 @@ static bool 
cloth_remeshing_collapse_edges(ClothModifierData *clmd,
 
       /* update active_faces */
 
-      return false;
+      return true;
     }
     cloth_remeshing_remove_face(active_faces, i--);
     count++;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to