Fix T52498: Deleting force field doesn't remove "Surface" from modifier stack.
authorBastien Montagne <montagne29@wanadoo.fr>
Sun, 27 Aug 2017 10:20:21 +0000 (12:20 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Sun, 27 Aug 2017 10:20:21 +0000 (12:20 +0200)
commitdcebad773fd47f8f90d92af5e0c0a3115f44b621
tree978cddb6c461206427492359293572ae44404545
parentc90452e111abae7817b02ad848b358eb77a44252
Fix T52498: Deleting force field doesn't remove "Surface" from modifier stack.

Logic in `ED_object_check_force_modifiers` was inconsistent between add
and remove modifier cases.

Should be safe enough for 2.79.
source/blender/editors/object/object_edit.c