diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-11 04:14:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-11 04:24:38 +0300 |
commit | fd2ffb0b9e674a5edefa159d086d6a64edb3abe5 (patch) | |
tree | 575753508288d7c5d3a2633643f428ce936cc220 /source/blender/blenkernel/intern/mesh_convert.c | |
parent | 92a494ed51ec6301cb9ba07a8c4f8f59db8ab33e (diff) |
RNA: remove redundant new_from_object/to_mesh arg
If the caller wants loop-tris, there is a function to calculate them.
Diffstat (limited to 'source/blender/blenkernel/intern/mesh_convert.c')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_convert.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/mesh_convert.c b/source/blender/blenkernel/intern/mesh_convert.c index bb52ed79b53..4d7d2e4b931 100644 --- a/source/blender/blenkernel/intern/mesh_convert.c +++ b/source/blender/blenkernel/intern/mesh_convert.c @@ -840,7 +840,7 @@ void BKE_mesh_to_curve(Main *bmain, Depsgraph *depsgraph, Scene *scene, Object * /* settings: 1 - preview, 2 - render */ Mesh *BKE_mesh_new_from_object( Depsgraph *depsgraph, Main *bmain, Scene *sce, Object *ob, - const bool apply_modifiers, const bool calc_loop_triangles, const bool calc_undeformed) + const bool apply_modifiers, const bool calc_undeformed) { Mesh *tmpmesh; Curve *tmpcu = NULL, *copycu; @@ -1069,11 +1069,6 @@ Mesh *BKE_mesh_new_from_object( break; } /* end copy materials */ - if (calc_loop_triangles) { - /* cycles and exporters rely on this still */ - BKE_mesh_runtime_looptri_ensure(tmpmesh); - } - return tmpmesh; } |