diff options
Diffstat (limited to 'source/blender/blenkernel/intern/modifier.c')
-rw-r--r-- | source/blender/blenkernel/intern/modifier.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/source/blender/blenkernel/intern/modifier.c b/source/blender/blenkernel/intern/modifier.c index 3cd163bbbf8..fe955ced5f5 100644 --- a/source/blender/blenkernel/intern/modifier.c +++ b/source/blender/blenkernel/intern/modifier.c @@ -859,41 +859,6 @@ void modwrap_deformVertsEM( /* end modifier callback wrappers */ -/* wrappers for modifier callbacks that accept Mesh and select the proper implementation - * depending on if the modifier has been ported to Mesh or is still using DerivedMesh - */ - -/* deprecated variants of above that accept DerivedMesh */ - -struct DerivedMesh *modifier_applyModifier_DM_deprecated( - struct ModifierData *md, const ModifierEvalContext *ctx, - struct DerivedMesh *dm) -{ - const ModifierTypeInfo *mti = modifierType_getInfo(md->type); - - /* TODO(sybren): deduplicate all the copies of this code in this file. */ - Mesh *mesh = NULL; - if (dm != NULL) { - mesh = BKE_id_new_nomain(ID_ME, NULL); - DM_to_mesh(dm, mesh, ctx->object, &CD_MASK_EVERYTHING, false); - } - - struct Mesh *new_mesh = mti->applyModifier(md, ctx, mesh); - - /* Make a DM that doesn't reference new_mesh so we can free the latter. */ - DerivedMesh *ndm = CDDM_from_mesh_ex(new_mesh, CD_DUPLICATE, &CD_MASK_EVERYTHING); - - if (new_mesh != mesh) { - BKE_id_free(NULL, new_mesh); - } - if (mesh != NULL) { - BKE_id_free(NULL, mesh); - } - - return ndm; - -} - /** * Get evaluated mesh for other evaluated object, which is used as an operand for the modifier, * e.g. second operand for boolean modifier. |