Remove Surface modifier when removing force field from object
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 19 Nov 2013 11:19:06 +0000 (17:19 +0600)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 19 Nov 2013 11:19:06 +0000 (17:19 +0600)
commit000312ab515b77f00725a91b235685ff0c774e57
treef6f36e58e1d4df2a65be158a3f7e4364bf55a8ec
parentc566e408e42836c136d8818cbea93ce870be09ea
Remove Surface modifier when removing force field from object

Summary:
Before this adding Surface type of force field and removing
this field would leave Surface modifier alive in the stack.

This might be really misleading and annoying.

Now removing force field will ensure no modifiers needed for
it are remained in the stack.

This also fixes missing notifier to redraw modifier stack
when changing force field type.

Reviewers: brecht, campbellbarton

Reviewed By: brecht

Differential Revision: http://developer.blender.org/D13
release/scripts/addons
source/blender/editors/include/ED_object.h
source/blender/editors/object/object_edit.c
source/blender/editors/object/object_modifier.c
source/blender/makesrna/intern/rna_object_force.c
source/blenderplayer/bad_level_call_stubs/stubs.c