Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2020-10-19 04:10:16 +0300
committerJoseph Eagar <joeedh@gmail.com>2020-10-19 04:10:16 +0300
commitf61d4b2e3aaed64c0fa2bdd7740e2173d785f8e5 (patch)
tree44042429e8f522d9a360ad94684ce4bef81166d6 /source/blender/modifiers/intern/MOD_triangulate.c
parent49f57d8de87370cebaefc8b0b33fb9206806d3b3 (diff)
* Improved multires projection some more in bmesh_interp.c
Diffstat (limited to 'source/blender/modifiers/intern/MOD_triangulate.c')
-rw-r--r--source/blender/modifiers/intern/MOD_triangulate.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/modifiers/intern/MOD_triangulate.c b/source/blender/modifiers/intern/MOD_triangulate.c
index a193b5bec58..aa2b69ff2c4 100644
--- a/source/blender/modifiers/intern/MOD_triangulate.c
+++ b/source/blender/modifiers/intern/MOD_triangulate.c
@@ -48,7 +48,7 @@
#include "MOD_modifiertypes.h"
#include "MOD_ui_common.h"
-static Mesh *triangulate_mesh(Mesh *mesh,
+static Mesh *triangulate_mesh(Object *ob, Mesh *mesh,
const int quad_method,
const int ngon_method,
const int min_vertices,
@@ -70,7 +70,8 @@ static Mesh *triangulate_mesh(Mesh *mesh,
cd_mask_extra.lmask |= CD_MASK_NORMAL;
}
- bm = BKE_mesh_to_bmesh_ex(mesh,
+ bm = BKE_mesh_to_bmesh_ex(ob,
+ mesh,
&((struct BMeshCreateParams){0}),
&((struct BMeshFromMeshParams){
.calc_face_normal = true,
@@ -118,11 +119,11 @@ static void initData(ModifierData *md)
md->mode |= eModifierMode_Editmode;
}
-static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *UNUSED(ctx), Mesh *mesh)
+static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh)
{
TriangulateModifierData *tmd = (TriangulateModifierData *)md;
Mesh *result;
- if (!(result = triangulate_mesh(
+ if (!(result = triangulate_mesh(ctx->object,
mesh, tmd->quad_method, tmd->ngon_method, tmd->min_vertices, tmd->flag))) {
return mesh;
}