[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60987] trunk/blender/source/blender/ collada/collada_utils.cpp: (Due to a change in function call) Added default triangulation method for Collada exporter
Gaia Clary
gaia.clary at machinimatrix.org
Tue Oct 29 11:49:44 CET 2013
Revision: 60987
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60987
Author: gaiaclary
Date: 2013-10-29 10:49:44 +0000 (Tue, 29 Oct 2013)
Log Message:
-----------
(Due to a change in function call) Added default triangulation method for Collada exporter
Modified Paths:
--------------
trunk/blender/source/blender/collada/collada_utils.cpp
Modified: trunk/blender/source/blender/collada/collada_utils.cpp
===================================================================
--- trunk/blender/source/blender/collada/collada_utils.cpp 2013-10-29 10:13:49 UTC (rev 60986)
+++ trunk/blender/source/blender/collada/collada_utils.cpp 2013-10-29 10:49:44 UTC (rev 60987)
@@ -354,12 +354,14 @@
void bc_triangulate_mesh(Mesh *me)
{
- bool use_beauty = false;
- bool tag_only = false;
+ bool use_beauty = false;
+ bool tag_only = false;
+ 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);
- BM_mesh_triangulate(bm, use_beauty, tag_only, NULL, NULL, NULL);
+ BM_mesh_triangulate(bm, quad_method, use_beauty, tag_only, NULL, NULL);
+
BM_mesh_bm_to_me(bm, me, FALSE);
BM_mesh_free(bm);
}
More information about the Bf-blender-cvs
mailing list