Added string to BIF_setSingleAxisConstraint() function for headerprint.

Needed for martin to further work on print stuff
This commit is contained in:
2005-03-21 17:52:45 +00:00
parent bc9291d806
commit bc77092959
5 changed files with 16 additions and 12 deletions

View File

@@ -554,7 +554,8 @@ void setLocalConstraint(TransInfo *t, int mode, const char text[]) {
}
}
void BIF_setSingleAxisConstraint(float vec[3]) {
/* text is optional, for header print */
void BIF_setSingleAxisConstraint(float vec[3], char *text) {
TransInfo *t = BIF_GetTransInfo();
float space[3][3], v[3];
@@ -576,6 +577,8 @@ void BIF_setSingleAxisConstraint(float vec[3]) {
startConstraint(t);
if(text) strncpy(t->con.text, text, 49); // 50 in struct
t->con.drawExtra = NULL;
t->con.applyVec = applyAxisConstraintVec;
t->con.applySize = applyAxisConstraintSize;