diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2018-11-25 10:58:30 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2018-11-25 10:59:40 +0300 |
commit | e60c49ecf06815039137c98f86a7198d6ee81e14 (patch) | |
tree | ec48ed8df62f0f3847d99bf696a1287c17d3e2cf /source | |
parent | 7e9389b83d82e25f48b942ec4c72a9dfd36891fb (diff) |
Use orig_pchan when searching for the original copy of a constraint.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/constraint.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c index d8956ce28b7..8c31b830ff7 100644 --- a/source/blender/blenkernel/intern/constraint.c +++ b/source/blender/blenkernel/intern/constraint.c @@ -5107,11 +5107,7 @@ static bConstraint *constraint_find_original(Object *ob, bPoseChannel *pchan, bC ListBase *constraints, *orig_constraints; if (pchan != NULL) { - if (orig_ob->type != OB_ARMATURE || orig_ob->pose == NULL) { - return NULL; - } - - bPoseChannel *orig_pchan = BKE_pose_channel_find_name(orig_ob->pose, pchan->name); + bPoseChannel *orig_pchan = pchan->orig_pchan; if (orig_pchan == NULL) { return NULL; |