diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-10-29 14:49:44 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-10-29 14:49:44 +0400 |
commit | 055b65d6bad2ce200d3b4315f7754f2cb586e6fe (patch) | |
tree | b992bc2ff5ccd8b6fd530258bd580d5ae15e4a90 /source | |
parent | f9ab1df5640cfa20ae381dfb75afaf1604e00c0c (diff) |
(Due to a change in function call) Added default triangulation method for Collada exporter
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/collada/collada_utils.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/collada/collada_utils.cpp b/source/blender/collada/collada_utils.cpp index 8a1b391f07b..2e805ce18f1 100644 --- a/source/blender/collada/collada_utils.cpp +++ b/source/blender/collada/collada_utils.cpp @@ -354,12 +354,14 @@ void bc_match_scale(std::vector<Object *> *objects_done, 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); } |