From d59c2d12b1226afa3789b0ef142f8f6cc9356ead Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 4 Apr 2018 14:56:32 +0200 Subject: Fix modifier freeing code re. ID refcounting. Free code should not handle ID refcounting at all. This has to be done at higher level, since in some case we want to free (temp) data that actually did not refcount at all its IDs. This change seems to be working OK, but as usual in that area, only lots of testing in real-case situation will say whether there are some hidden bugs or not. --- source/blender/blenkernel/BKE_modifier.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel/BKE_modifier.h') diff --git a/source/blender/blenkernel/BKE_modifier.h b/source/blender/blenkernel/BKE_modifier.h index b0917e4f6cd..18cde156f5e 100644 --- a/source/blender/blenkernel/BKE_modifier.h +++ b/source/blender/blenkernel/BKE_modifier.h @@ -346,6 +346,7 @@ const ModifierTypeInfo *modifierType_getInfo(ModifierType type); * default values if pointer is optional. */ struct ModifierData *modifier_new(int type); +void modifier_free_ex(struct ModifierData *md, const int flag); void modifier_free(struct ModifierData *md); bool modifier_unique_name(struct ListBase *modifiers, struct ModifierData *md); -- cgit v1.2.3