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:
authorAlexander Gavrilov <angavrilov@gmail.com>2018-11-25 10:58:30 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2018-11-25 10:59:40 +0300
commite60c49ecf06815039137c98f86a7198d6ee81e14 (patch)
treeec48ed8df62f0f3847d99bf696a1287c17d3e2cf
parent7e9389b83d82e25f48b942ec4c72a9dfd36891fb (diff)
Use orig_pchan when searching for the original copy of a constraint.
-rw-r--r--source/blender/blenkernel/intern/constraint.c6
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;