[Bf-blender-cvs] [467e125] master: Fix broken Collada from rBrB6d0cae56e84306ed.

Bastien Montagne noreply at git.blender.org
Fri Apr 29 16:57:13 CEST 2016


Commit: 467e12514e60b4130cd0a33b59f53aa4cf7056b6
Author: Bastien Montagne
Date:   Fri Apr 29 16:56:20 2016 +0200
Branches: master
https://developer.blender.org/rB467e12514e60b4130cd0a33b59f53aa4cf7056b6

Fix broken Collada from rBrB6d0cae56e84306ed.

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

M	source/blender/collada/collada_utils.cpp

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

diff --git a/source/blender/collada/collada_utils.cpp b/source/blender/collada/collada_utils.cpp
index efdfaad..f8feed8 100644
--- a/source/blender/collada/collada_utils.cpp
+++ b/source/blender/collada/collada_utils.cpp
@@ -357,9 +357,12 @@ void bc_triangulate_mesh(Mesh *me)
 	int  quad_method = MOD_TRIANGULATE_QUAD_SHORTEDGE; /* XXX: The triangulation method selection could be offered in the UI */
 	 
 	BMesh *bm = BM_mesh_create(&bm_mesh_allocsize_default);
-	BM_mesh_bm_from_me(bm, me, true, false, 0);
+	BMeshFromMeshParams bm_from_me_params = {0};
+	bm_from_me_params.calc_face_normal = true;
+	BM_mesh_bm_from_me(bm, me, &bm_from_me_params);
 	BM_mesh_triangulate(bm, quad_method, use_beauty, tag_only, NULL, NULL, NULL);
 
-	BM_mesh_bm_to_me(bm, me, false);
+	BMeshToMeshParams bm_to_me_params = {0};
+	BM_mesh_bm_to_me(bm, me, &bm_to_me_params);
 	BM_mesh_free(bm);
 }




More information about the Bf-blender-cvs mailing list