[Bf-blender-cvs] [23cc2a26283] master: Fix ID reference counting asserts when freeing COW pose channels.

Alexander Gavrilov noreply at git.blender.org
Wed Jul 1 14:28:33 CEST 2020


Commit: 23cc2a262835f6e61bcc876b7fc911a1ce3e16b6
Author: Alexander Gavrilov
Date:   Wed Jul 1 14:42:24 2020 +0300
Branches: master
https://developer.blender.org/rB23cc2a262835f6e61bcc876b7fc911a1ce3e16b6

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.

===================================================================

M	source/blender/blenkernel/intern/action.c

===================================================================

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;
   }



More information about the Bf-blender-cvs mailing list