[Bf-blender-cvs] [58a80eb44e6] soc-2019-adaptive-cloth: Cloth: multiply object matrix with bmesh vertices

ishbosamiya noreply at git.blender.org
Thu Aug 1 12:13:08 CEST 2019


Commit: 58a80eb44e6c33b8462c4a6719ad7892fc96c1cd
Author: ishbosamiya
Date:   Wed Jul 31 21:28:09 2019 +0530
Branches: soc-2019-adaptive-cloth
https://developer.blender.org/rB58a80eb44e6c33b8462c4a6719ad7892fc96c1cd

Cloth: multiply object matrix with bmesh vertices

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

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 8e6222fb914..d527a82e27b 100644
--- a/source/blender/blenkernel/intern/cloth_remeshing.cpp
+++ b/source/blender/blenkernel/intern/cloth_remeshing.cpp
@@ -87,7 +87,7 @@ class ClothPlane {
 
 #define REMESHING_DATA_DEBUG 0 /* split and collapse edge count */
 #define COLLAPSE_EDGES_DEBUG 0
-#define FACE_SIZING_DEBUG 1
+#define FACE_SIZING_DEBUG 0
 #define FACE_SIZING_DEBUG_COMP 0
 #define FACE_SIZING_DEBUG_OBS 0
 #define FACE_SIZING_DEBUG_SIZE 0
@@ -191,6 +191,7 @@ static void cloth_remeshing_init_bmesh(Object *ob,
     BMIter viter;
     int i = 0;
     BM_ITER_MESH_INDEX (v, &viter, clmd->clothObject->bm_prev, BM_VERTS_OF_MESH, i) {
+      mul_m4_v3(ob->obmat, v->co);
       if (!equals_v3v3(v->co, clmd->clothObject->verts[i].x)) {
         printf("copying %f %f %f into %f %f %f\n",
                clmd->clothObject->verts[i].x[0],



More information about the Bf-blender-cvs mailing list