diff options
author | Bastien Montagne <bastien@blender.org> | 2020-10-02 17:12:27 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-10-02 18:40:51 +0300 |
commit | f3934523946962b807b0dd7e0863a437cfc56e27 (patch) | |
tree | 3566da5d6e4eb63816c7b56334821227d1b356de /source/blender/editors/armature | |
parent | 619e52eb82744c9dc2a403a0aa12fa9e9141fe3b (diff) |
Fix T81345, part two: crash in depsgraph when freeing COW armature.
Freeing of bones' IDproerties from Armature `free_data` callback would always
attempt to do user refcounting, which should never be done from that code.
This would generate crashes in depsgraph/COW context e.g.
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r-- | source/blender/editors/armature/armature_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/armature/armature_utils.c b/source/blender/editors/armature/armature_utils.c index 1c8c5ba9d94..29df8b31819 100644 --- a/source/blender/editors/armature/armature_utils.c +++ b/source/blender/editors/armature/armature_utils.c @@ -695,7 +695,7 @@ void ED_armature_from_edit(Main *bmain, bArmature *arm) /* armature bones */ BKE_armature_bone_hash_free(arm); - BKE_armature_bonelist_free(&arm->bonebase); + BKE_armature_bonelist_free(&arm->bonebase, true); arm->act_bone = NULL; /* remove zero sized bones, this gives unstable restposes */ |