Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2016-11-11 20:05:01 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-11-11 20:11:30 +0300
commited957768a06788f2a0586870c34e032f43cfc311 (patch)
treea747a1c14d5cd0a725689961b4f6b2f5f1fb6298 /source/blender/editors/gpencil/gpencil_data.c
parent7d33d4439f5cdfebab03b2fc1f71e056b0f536f3 (diff)
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).
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_data.c')
0 files changed, 0 insertions, 0 deletions