diff options
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; |