diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-10-17 04:18:02 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-10-17 04:18:02 +0300 |
commit | 098b86475d959822a4da2ea2c6fe89b137726edf (patch) | |
tree | 60225e766b096a32bc0f6ac7e9620bb49a5b7d1d /source/blender/editors/object/object_constraint.c | |
parent | ff9e0b67812afcfd4d2843dfa0d8ff0cb496a2de (diff) |
Use CTX_DATA_BEGIN_FOR_ID
Diffstat (limited to 'source/blender/editors/object/object_constraint.c')
-rw-r--r-- | source/blender/editors/object/object_constraint.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index 982e588b414..6d39ade8fd5 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -1639,12 +1639,8 @@ static bool get_new_constraint_target(bContext *C, int con_type, Object **tar_ob /* if the active Object is Armature, and we can search for bones, do so... */ if ((obact->type == OB_ARMATURE) && (only_ob == false)) { /* search in list of selected Pose-Channels for target */ - CTX_DATA_BEGIN_WITH_ID (C, bPoseChannel *, pchan, selected_pose_bones, Object *, ob) + CTX_DATA_BEGIN_FOR_ID (C, bPoseChannel *, pchan, selected_pose_bones, &obact->id) { - if (ob != obact) { - continue; - } - /* just use the first one that we encounter, as long as it is not the active one */ if (pchan != pchanact) { *tar_ob = obact; |