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:
authorAlexander Gavrilov <angavrilov@gmail.com>2020-07-01 14:42:24 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2020-07-01 14:42:55 +0300
commit23cc2a262835f6e61bcc876b7fc911a1ce3e16b6 (patch)
treeb30199ddc5352921ec2b2bb12d1f3ec554bb941b
parent323c5e1e0bc728e81dbc1f048cb9653cf905c984 (diff)
Fix ID reference counting asserts when freeing COW pose channels.
Take the do_id_user flag into account when freeing custom properties attached to pose channels, so that pointer properties don't cause assertion failures when DEG frees its COW instances.
-rw-r--r--source/blender/blenkernel/intern/action.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c
index c776f0d077d..b35d2183408 100644
--- a/source/blender/blenkernel/intern/action.c
+++ b/source/blender/blenkernel/intern/action.c
@@ -939,7 +939,7 @@ void BKE_pose_channel_free_ex(bPoseChannel *pchan, bool do_id_user)
BKE_constraints_free_ex(&pchan->constraints, do_id_user);
if (pchan->prop) {
- IDP_FreeProperty(pchan->prop);
+ IDP_FreeProperty_ex(pchan->prop, do_id_user);
pchan->prop = NULL;
}