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:
parent
323c5e1e0b
commit
23cc2a2628
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue