Blender Git Loki
Git Commits -> Revision ed95776
Revision ed95776 by Bastien Montagne (master) November 11, 2016, 17:11 (GMT) |
Fix crash happening in some cases with MakeLocal operator. Culprit here was once more proxies. Think what was happening here was: 1) Both proxy and proxified armatures' PoseChannels were cleared (needed after remapping due to Bone pointers being stored in pchans). 2) Proxy PoseChannels got rebuilt in `BKE_pose_rebuild_ex()`, which ends, in proxy cases, by actually replacing rebuilt pchans by those from the proxified object... which has not yet been rebuilt. Fixed the issue by merely adding bone pointer to data copied from original pchan into new 'from proxy' one... Sounds much, much safer and sanier anyway, that way we can be sure bone pointer is actually pointing to a bone of the object's armature (this is supposed to be the same Armature datablock between proxy and proxified objects, but that may not be always true especially during makelocal process). |
Commit Details:
Full Hash: ed957768a06788f2a0586870c34e032f43cfc311
Parent Commit: 7d33d44
Lines Changed: +1, -0
1 Modified Path:
/source/blender/blenkernel/intern/armature.c (+1, -0) (Diff)