Fix T66991 Crash when deleting edit bones when pchan is referenced by bendybone
authorClément Foucault <foucault.clem@gmail.com>
Mon, 15 Jul 2019 13:13:33 +0000 (15:13 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Mon, 15 Jul 2019 13:13:45 +0000 (15:13 +0200)
commit9db772fe9afea62657ccdfaeda0bff8700c490ef
treecb504db8ded7d830333045da1b8f856f5a0ef087
parente66c3589a2a67d880f4d3dbfa7e3ba473c3751b8
Fix T66991 Crash when deleting edit bones when pchan is referenced by bendybone

This was caused by loose pointers.

This diff takes care of clearing the fields of other bones before deleting the pchan.

Reviewers: brecht, sergey

Reviewed By: brecht, sergey

Differential Revision: https://developer.blender.org/D5258
source/blender/blenkernel/intern/action.c