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.
This commit is contained in:
Alexander Gavrilov 2020-07-01 14:42:24 +03:00
parent 323c5e1e0b
commit 23cc2a2628
1 changed files with 1 additions and 1 deletions

View File

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