Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-10-02 17:12:27 +0300
committerBastien Montagne <bastien@blender.org>2020-10-02 18:40:51 +0300
commitf3934523946962b807b0dd7e0863a437cfc56e27 (patch)
tree3566da5d6e4eb63816c7b56334821227d1b356de /source/blender/editors/armature/armature_utils.c
parent619e52eb82744c9dc2a403a0aa12fa9e9141fe3b (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/armature_utils.c')
-rw-r--r--source/blender/editors/armature/armature_utils.c2
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 */