Posemode, Wkey option "Select constraint target" did not work for Copy
Scale constraint.
Also added a check for NULL pointer, constraint targets cannot exist...
This commit is contained in:
2006-08-12 12:33:24 +00:00
parent e47137ff42
commit f27acb2e7c
2 changed files with 3 additions and 1 deletions

View File

@@ -359,6 +359,7 @@ Object *get_constraint_target(bConstraint *con, char **subtarget)
case CONSTRAINT_TYPE_SIZELIKE:
{
bSizeLikeConstraint *data = con->data;
*subtarget= data->subtarget;
return data->tar;
}
break;

View File

@@ -295,6 +295,7 @@ void pose_select_constraint_target(void)
if(ob==target) {
if(subtarget) {
bPoseChannel *pchanc= get_pose_channel(ob->pose, subtarget);
if(pchanc)
pchanc->bone->flag |= BONE_SELECTED|BONE_TIPSEL|BONE_ROOTSEL;
}
}