Commit: 91c6beb28ab9c2914262c4010bcbc8d7f1e1bf29
Author: Sergey Sharybin
Date:   Wed Oct 24 14:03:51 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB91c6beb28ab9c2914262c4010bcbc8d7f1e1bf29

Cleanup: Remove unused modifiers callback

Was only used by subsurf in the past years, it is unlikely
other modifiers will every need this any time soon.

===================================================================

M       source/blender/blenkernel/BKE_modifier.h
M       source/blender/blenkernel/intern/DerivedMesh.c
M       source/blender/blenkernel/intern/modifier.c
M       source/blender/modifiers/intern/MOD_armature.c
M       source/blender/modifiers/intern/MOD_array.c
M       source/blender/modifiers/intern/MOD_bevel.c
M       source/blender/modifiers/intern/MOD_boolean.c
M       source/blender/modifiers/intern/MOD_build.c
M       source/blender/modifiers/intern/MOD_cast.c
M       source/blender/modifiers/intern/MOD_cloth.c
M       source/blender/modifiers/intern/MOD_collision.c
M       source/blender/modifiers/intern/MOD_correctivesmooth.c
M       source/blender/modifiers/intern/MOD_curve.c
M       source/blender/modifiers/intern/MOD_datatransfer.c
M       source/blender/modifiers/intern/MOD_decimate.c
M       source/blender/modifiers/intern/MOD_displace.c
M       source/blender/modifiers/intern/MOD_dynamicpaint.c
M       source/blender/modifiers/intern/MOD_edgesplit.c
M       source/blender/modifiers/intern/MOD_explode.c
M       source/blender/modifiers/intern/MOD_fluidsim.c
M       source/blender/modifiers/intern/MOD_hook.c
M       source/blender/modifiers/intern/MOD_laplaciandeform.c
M       source/blender/modifiers/intern/MOD_laplaciansmooth.c
M       source/blender/modifiers/intern/MOD_lattice.c
M       source/blender/modifiers/intern/MOD_mask.c
M       source/blender/modifiers/intern/MOD_meshcache.c
M       source/blender/modifiers/intern/MOD_meshdeform.c
M       source/blender/modifiers/intern/MOD_meshsequencecache.c
M       source/blender/modifiers/intern/MOD_mirror.c
M       source/blender/modifiers/intern/MOD_multires.c
M       source/blender/modifiers/intern/MOD_none.c
M       source/blender/modifiers/intern/MOD_normal_edit.c
M       source/blender/modifiers/intern/MOD_ocean.c
M       source/blender/modifiers/intern/MOD_particleinstance.c
M       source/blender/modifiers/intern/MOD_particlesystem.c
M       source/blender/modifiers/intern/MOD_remesh.c
M       source/blender/modifiers/intern/MOD_screw.c
M       source/blender/modifiers/intern/MOD_shapekey.c
M       source/blender/modifiers/intern/MOD_shrinkwrap.c
M       source/blender/modifiers/intern/MOD_simpledeform.c
M       source/blender/modifiers/intern/MOD_skin.c
M       source/blender/modifiers/intern/MOD_smoke.c
M       source/blender/modifiers/intern/MOD_smooth.c
M       source/blender/modifiers/intern/MOD_softbody.c
M       source/blender/modifiers/intern/MOD_solidify.c
M       source/blender/modifiers/intern/MOD_subsurf.c
M       source/blender/modifiers/intern/MOD_surface.c
M       source/blender/modifiers/intern/MOD_surfacedeform.c
M       source/blender/modifiers/intern/MOD_triangulate.c
M       source/blender/modifiers/intern/MOD_uvproject.c
M       source/blender/modifiers/intern/MOD_uvwarp.c
M       source/blender/modifiers/intern/MOD_warp.c
M       source/blender/modifiers/intern/MOD_wave.c
M       source/blender/modifiers/intern/MOD_weighted_normal.c
M       source/blender/modifiers/intern/MOD_weightvgedit.c
M       source/blender/modifiers/intern/MOD_weightvgmix.c
M       source/blender/modifiers/intern/MOD_weightvgproximity.c
M       source/blender/modifiers/intern/MOD_wireframe.c

===================================================================

diff --git a/source/blender/blenkernel/BKE_modifier.h 
b/source/blender/blenkernel/BKE_modifier.h
index 2be91406524..6b64b1663d8 100644
--- a/source/blender/blenkernel/BKE_modifier.h
+++ b/source/blender/blenkernel/BKE_modifier.h
@@ -172,7 +172,6 @@ typedef struct ModifierTypeInfo {
        /********************* Non-deform modifier functions 
*********************/ /* DEPRECATED */
 
        void (*applyModifier_DM_removed)(void);
-       void (*applyModifierEM_DM_removed)(void);
 
        /********************* Deform modifier functions *********************/
 
@@ -213,17 +212,6 @@ typedef struct ModifierTypeInfo {
        struct Mesh *(*applyModifier)(struct ModifierData *md, const struct 
ModifierEvalContext *ctx,
                                      struct Mesh *mesh);
 
-       /* Like applyModifier but called during editmode (for supporting
-        * modifiers).
-        *
-        * The mesh object that is returned must support the operations that
-        * are expected from editmode objects. The same qualifications regarding
-        * mesh apply as for applyModifier.
-        */
-       struct Mesh *(*applyModifierEM)(struct ModifierData *md, const struct 
ModifierEvalContext *ctx,
-                                       struct BMEditMesh *editData,
-                                       struct Mesh *mesh);
-
 
        /********************* Optional functions *********************/
 
@@ -428,10 +416,6 @@ struct Mesh *modwrap_applyModifier(
         ModifierData *md, const struct ModifierEvalContext *ctx,
         struct Mesh *me);
 
-struct Mesh *modwrap_applyModifierEM(
-        ModifierData *md, const struct ModifierEvalContext *ctx,
-        struct BMEditMesh *em, struct Mesh *me);
-
 void modwrap_deformVerts(
         ModifierData *md, const struct ModifierEvalContext *ctx,
         struct Mesh *me,
diff --git a/source/blender/blenkernel/intern/DerivedMesh.c 
b/source/blender/blenkernel/intern/DerivedMesh.c
index 00f2454d53b..c84bd378b04 100644
--- a/source/blender/blenkernel/intern/DerivedMesh.c
+++ b/source/blender/blenkernel/intern/DerivedMesh.c
@@ -1783,12 +1783,7 @@ static void editbmesh_calc_modifiers(
                                mask &= ~CD_MASK_ORCO;
                                mesh_set_only_copy(me_orco, mask | 
CD_MASK_ORIGINDEX);
 
-                               if (mti->applyModifierEM) {
-                                       me_next = modwrap_applyModifierEM(md, 
&mectx_orco, em, me_orco);
-                               }
-                               else {
-                                       me_next = modwrap_applyModifier(md, 
&mectx_orco, me_orco);
-                               }
+                               me_next = modwrap_applyModifier(md, 
&mectx_orco, me_orco);
                                ASSERT_IS_VALID_MESH(me_next);
 
                                if (me_next) {
@@ -1813,12 +1808,7 @@ static void editbmesh_calc_modifiers(
                                }
                        }
 
-                       if (mti->applyModifierEM) {
-                               me_next = modwrap_applyModifierEM(md, 
&mectx_cache, em, me);
-                       }
-                       else {
-                               me_next = modwrap_applyModifier(md, 
&mectx_cache, me);
-                       }
+                       me_next = modwrap_applyModifier(md, &mectx_cache, me);
                        ASSERT_IS_VALID_MESH(me_next);
 
                        if (me_next) {
diff --git a/source/blender/blenkernel/intern/modifier.c 
b/source/blender/blenkernel/intern/modifier.c
index 41c35de8aea..73a9d462687 100644
--- a/source/blender/blenkernel/intern/modifier.c
+++ b/source/blender/blenkernel/intern/modifier.c
@@ -839,19 +839,6 @@ struct Mesh *modwrap_applyModifier(
        return mti->applyModifier(md, ctx, me);
 }
 
-struct Mesh *modwrap_applyModifierEM(
-        ModifierData *md, const ModifierEvalContext *ctx,
-        struct BMEditMesh *em, Mesh *me)
-{
-       const ModifierTypeInfo *mti = modifierType_getInfo(md->type);
-       BLI_assert(CustomData_has_layer(&me->pdata, CD_NORMAL) == false);
-
-       if (mti->dependsOnNormals && mti->dependsOnNormals(md)) {
-               BKE_mesh_calc_normals(me);
-       }
-       return mti->applyModifierEM(md, ctx, em, me);
-}
-
 void modwrap_deformVerts(
         ModifierData *md, const ModifierEvalContext *ctx,
         Mesh *me, float (*vertexCos)[3], int numVerts)
diff --git a/source/blender/modifiers/intern/MOD_armature.c 
b/source/blender/modifiers/intern/MOD_armature.c
index 7fa1705249c..3209391d4bc 100644
--- a/source/blender/modifiers/intern/MOD_armature.c
+++ b/source/blender/modifiers/intern/MOD_armature.c
@@ -201,14 +201,12 @@ ModifierTypeInfo modifierType_Armature = {
        /* deformVertsEM_DM */  NULL,
        /* deformMatricesEM_DM*/NULL,
        /* applyModifier_DM */  NULL,
-       /* applyModifierEM_DM */NULL,
 
        /* deformVerts */       deformVerts,
        /* deformMatrices */    deformMatrices,
        /* deformVertsEM */     deformVertsEM,
        /* deformMatricesEM */  deformMatricesEM,
        /* applyModifier */     NULL,
-       /* applyModifierEM */   NULL,
 
        /* initData */          initData,
        /* requiredDataMask */  requiredDataMask,
diff --git a/source/blender/modifiers/intern/MOD_array.c 
b/source/blender/modifiers/intern/MOD_array.c
index 9cd642e1a3b..cd2f7cc364b 100644
--- a/source/blender/modifiers/intern/MOD_array.c
+++ b/source/blender/modifiers/intern/MOD_array.c
@@ -776,14 +776,12 @@ ModifierTypeInfo modifierType_Array = {
        /* deformVertsEM_DM */  NULL,
        /* deformMatricesEM_DM*/NULL,
        /* applyModifier_DM */  NULL,
-       /* applyModifierEM_DM */NULL,
 
        /* deformVerts */       NULL,
        /* deformMatrices */    NULL,
        /* deformVertsEM */     NULL,
        /* deformMatricesEM */  NULL,
        /* applyModifier */     applyModifier,
-       /* applyModifierEM */   NULL,
 
        /* initData */          initData,
        /* requiredDataMask */  NULL,
diff --git a/source/blender/modifiers/intern/MOD_bevel.c 
b/source/blender/modifiers/intern/MOD_bevel.c
index 8424df8a7bc..d548bae96a0 100644
--- a/source/blender/modifiers/intern/MOD_bevel.c
+++ b/source/blender/modifiers/intern/MOD_bevel.c
@@ -486,14 +486,12 @@ ModifierTypeInfo modifierType_Bevel = {
        /* deformVertsEM_DM */  NULL,
        /* deformMatricesEM_DM*/NULL,
        /* applyModifier_DM */  NULL,
-       /* applyModifierEM_DM */NULL,
 
        /* deformVerts */       NULL,
        /* deformMatrices */    NULL,
        /* deformVertsEM */     NULL,
        /* deformMatricesEM */  NULL,
        /* applyModifier */     applyModifier,
-       /* applyModifierEM */   NULL,
 
        /* initData */          initData,
        /* requiredDataMask */  requiredDataMask,
diff --git a/source/blender/modifiers/intern/MOD_boolean.c 
b/source/blender/modifiers/intern/MOD_boolean.c
index 8619b4e020c..1fce2cf8ed1 100644
--- a/source/blender/modifiers/intern/MOD_boolean.c
+++ b/source/blender/modifiers/intern/MOD_boolean.c
@@ -365,14 +365,12 @@ ModifierTypeInfo modifierType_Boolean = {
        /* deformVertsEM_DM */  NULL,
        /* deformMatricesEM_DM*/NULL,
        /* applyModifier_DM */  NULL,
-       /* applyModifierEM_DM */NULL,
 
        /* deformVerts */       NULL,
        /* deformMatrices */    NULL,
        /* deformVertsEM */     NULL,
        /* deformMatricesEM */  NULL,
        /* applyModifier */     applyModifier,
-       /* applyModifierEM */   NULL,
 
        /* initData */          initData,
        /* requiredDataMask */  requiredDataMask,
diff --git a/source/blender/modifiers/intern/MOD_build.c 
b/source/blender/modifiers/intern/MOD_build.c
index 625df71bbf6..e2c13d02827 100644
--- a/source/blender/modifiers/intern/MOD_build.c
+++ b/source/blender/modifiers/intern/MOD_build.c
@@ -307,14 +307,12 @@ ModifierTypeInfo modifierType_Build = {
        /* deformVertsEM_DM */  NULL,
        /* deformMatricesEM_DM*/NULL,
        /* applyModifier_DM */  NULL,
-       /* applyModifierEM_DM */NULL,
 
        /* deformVerts */       NULL,
        /* deformMatrices */    NULL,
        /* deformVertsEM */     NULL,
        /* deformMatricesEM */  NULL,
        /* applyModifier */     applyModifier,
-       /* applyModifierEM */   NULL,
 
        /* initData */          initData,
        /* requiredDataMask */  NULL,
diff --git a/source/blender/modifiers/intern/MOD_cast.c 
b/source/blender/modifiers/intern/MOD_cast.c
index a0901b6d838..74e19f3254a 100644
--- a/source/blender/modifiers/intern/MOD_cast.c
+++ b/source/blender/modifiers/intern/MOD_cast.c
@@ -484,14 +484,12 @@ ModifierTypeInfo modifierType_Cast = {
        /* deformVertsEM_DM */  NULL,
        /* deformMatricesEM_DM*/NULL,
        /* applyModifier_DM */  NULL,
-       /* applyModifierEM_DM */NULL,
 
        /* deformVerts */       deformVerts,
        /* deformMatrices */    NULL,
        /* deformVertsEM */     deformVertsEM,
        /* deformMatricesEM */  NULL,
        /* applyModifier */     NULL,
-       /* applyModifierEM */   NULL,
 
        /* initData */          initData,
        /* requiredDataMask */  requiredDataMask,
diff --git a/source/blender/modifiers/intern/MOD_cloth.c 
b/source/blender/modifiers/intern/MOD_cloth.c
index 53e71bfc1a4..55af0f04bac 100644
--- a/source/blender/modifiers/intern/MOD_cloth.c
+++ b/source/blender/modifiers/intern/MOD_cloth.c
@@ -261,14 +261,12 @@ ModifierTypeInfo modifierType_Cloth = {
        /* deformVertsEM_DM */  NULL,
        /* deformMatricesEM_DM*/NULL,
        /* applyModifier_DM */  NULL,
-       /* applyModifierEM_DM */NULL,
 
        /* deformVerts */       deformVerts,
        /* deformMatrices */    NULL,
        /* deformVertsEM */     NULL,
        /* deformMatricesEM */  NULL,
        /* applyModifier */     NULL,
-       /* applyModifierEM */   NULL,
 
        /* initData */          initData,
        /* requiredDataMask */  requiredDataMask,
diff --git a/source/blender/modifiers/intern/MOD_collision.c 
b/source/blender/modifiers/intern/MOD_collision.c
index 397cf287103..2fddef21996 100644
--- a/source/blender/modifiers/intern/MOD_collision.c
+++ b/source/blender/modifiers/intern/MOD_collision.c
@@ -271,14 +271,12 @@ ModifierTypeInfo modifierType_Collision = {
        /* deformVertsEM_DM */  NULL,
        /* deformMatricesEM_DM*/NULL,
        /* applyModifier_DM */  NULL,
-       /* applyModifierEM_DM */NULL,
 
        /* deformVerts */       deformVerts,
        /* deformMatrices */    NULL,
        /* deformVertsEM */     NULL,
        /* deformMatricesEM */  NULL,
        /* applyModifier */     NULL,
-       /* applyModifierEM */   NULL,
 
        /* initData */          initData,
        /* requiredDataMask */  NULL,
diff --git a/source/blender/modifiers/intern/MOD_correctivesmooth.c 
b/source/blender/modifiers/intern/MOD_correctivesmooth.c
index d59360896e8..777e1cbf21b 100644
--- a/source/blender/modifiers/intern/MOD_correctivesmooth.c
+++ b/source/blender/modifiers/intern/MOD_correctivesmooth.c
@@ -756,14 +756,12 @@ ModifierTypeInfo modifierType_CorrectiveSmooth = {
        /* deformVertsEM_DM */  NULL,
        /* deformMatricesEM_DM*/NULL,
        /* applyModifier_DM */  NULL,
-       /* applyModifierEM_DM */NULL,
 
        /* deformVerts */       deformVerts,
        /* deformMatrices */    NULL,
        /* deformVertsEM */     deformVertsEM,
        /* deformMatricesEM */  NULL,
        /* applyModifier */     NULL,
-       /* applyModifierEM */   NULL,
 
        /* initData */          init

@@ Diff output truncated at 10240 characters. @@

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to