Stretch To constraint
Read today's meeting minutes for a description. Bjornmose: We'll need some example and screenshots for the dev pages of blender3d.org. If you can do some, neat, if not, I'll do them. Matt, Emilie and Chris: Please review UI addition. Pixel alignement and all that fun stuff has not be overly looked for (though I did some cleaning by adding alignment blocks).
This commit is contained in:
@@ -578,6 +578,23 @@ static short detect_constraint_loop (Object *owner, const char* substring, int d
|
||||
}
|
||||
}
|
||||
break;
|
||||
case CONSTRAINT_TYPE_STRETCHTO:
|
||||
{
|
||||
bStretchToConstraint *data = curcon->data;
|
||||
|
||||
if (!exist_object(data->tar)){
|
||||
data->tar = NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
if (detect_constraint_loop (data->tar, data->subtarget, disable, CONSTRAINT_TYPE_LOCKTRACK)){
|
||||
curcon->flag |= CONSTRAINT_DISABLE;
|
||||
result = 1;
|
||||
break;
|
||||
// return 1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case CONSTRAINT_TYPE_FOLLOWPATH:
|
||||
{
|
||||
bFollowPathConstraint *data = curcon->data;
|
||||
@@ -827,6 +844,12 @@ char *get_con_subtarget_name(bConstraint *constraint, Object *target)
|
||||
if (data->tar==target) return data->subtarget;
|
||||
}
|
||||
break;
|
||||
case CONSTRAINT_TYPE_STRETCHTO:
|
||||
{
|
||||
bStretchToConstraint *data = constraint->data;
|
||||
if (data->tar==target) return data->subtarget;
|
||||
}
|
||||
break;
|
||||
case CONSTRAINT_TYPE_FOLLOWPATH:
|
||||
/* wonder if this is relevent, since this constraint
|
||||
* cannot have a subtarget - theeth
|
||||
|
||||
Reference in New Issue
Block a user