Push/Pull didn't do Lock Constraint correctly. Fixed.
Also added an isLockConstraint function that tells if the current constraint is a locking constraint or not.
This commit is contained in:
@@ -739,6 +739,21 @@ void BIF_drawPropCircle()
|
||||
}
|
||||
}
|
||||
|
||||
int isLockConstraint(TransInfo *t) {
|
||||
int mode = t->con.mode;
|
||||
|
||||
if (mode & (CON_AXIS0|CON_AXIS1) == (CON_AXIS0|CON_AXIS1))
|
||||
return 1;
|
||||
|
||||
if (mode & (CON_AXIS1|CON_AXIS2) == (CON_AXIS1|CON_AXIS2))
|
||||
return 1;
|
||||
|
||||
if (mode & (CON_AXIS0|CON_AXIS2) == (CON_AXIS0|CON_AXIS2))
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void initConstraint(TransInfo *t) {
|
||||
if (t->con.mode & CON_APPLY) {
|
||||
startConstraint(t);
|
||||
|
||||
Reference in New Issue
Block a user