diff options
author | Bastien Montagne <bastien@blender.org> | 2021-03-02 14:37:44 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-03-02 14:41:03 +0300 |
commit | b3005bf6881f37fb4ed34c3f3b2db4cf4530814e (patch) | |
tree | 22020156a0945eeed8e5b1cb129bce3769e0bbb2 /source/blender/blenkernel/intern/action.c | |
parent | 3059c0b386d3eedbbaaecb4489ff70d61348e2bf (diff) |
Fix T85981, part II: bone's custom shape disappear on undo in some cases.
Nicely hidden bug in pose read library code, it was using the library
from the wrong ID as reference to relink the custom shape object pointer
(pose is data from Object, not Armature).
Diffstat (limited to 'source/blender/blenkernel/intern/action.c')
-rw-r--r-- | source/blender/blenkernel/intern/action.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c index 06b8bd5f0f2..f9c2a4e53ad 100644 --- a/source/blender/blenkernel/intern/action.c +++ b/source/blender/blenkernel/intern/action.c @@ -2002,7 +2002,7 @@ void BKE_pose_blend_read_lib(BlendLibReader *reader, Object *ob, bPose *pose) IDP_BlendReadLib(reader, pchan->prop); - BLO_read_id_address(reader, arm->id.lib, &pchan->custom); + BLO_read_id_address(reader, ob->id.lib, &pchan->custom); if (UNLIKELY(pchan->bone == NULL)) { rebuild = true; } |