Two minor code cleanups.
* Removed un-needed cases for limit loc/rot/scale constraints from expand_constraints, which caused a few compiler warnings * Removed an odd character in one of the comments for constraints. (Hopefully there wasn't any specific reason why it had to be there)
This commit is contained in:
parent
5782a80d70
commit
f645e51256
|
@ -6240,21 +6240,6 @@ static void expand_constraints(FileData *fd, Main *mainvar, ListBase *lb)
|
|||
expand_doit(fd, mainvar, data->tar);
|
||||
break;
|
||||
}
|
||||
case CONSTRAINT_TYPE_LOCLIMIT:
|
||||
{
|
||||
bLocLimitConstraint *data = (bLocLimitConstraint*)curcon->data;
|
||||
break;
|
||||
}
|
||||
case CONSTRAINT_TYPE_ROTLIMIT:
|
||||
{
|
||||
bRotLimitConstraint *data = (bRotLimitConstraint*)curcon->data;
|
||||
break;
|
||||
}
|
||||
case CONSTRAINT_TYPE_SIZELIMIT:
|
||||
{
|
||||
bSizeLimitConstraint *data = (bSizeLimitConstraint*)curcon->data;
|
||||
break;
|
||||
}
|
||||
case CONSTRAINT_TYPE_NULL:
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -229,7 +229,7 @@ typedef struct bSizeLimitConstraint{
|
|||
/* bConstraintChannel.flag */
|
||||
#define CONSTRAINT_CHANNEL_SELECT 0x01
|
||||
|
||||
/* bRotateLikeConstraint.flag */
|
||||
/* bRotateLikeConstraint.flag */
|
||||
#define ROTLIKE_X 0x01
|
||||
#define ROTLIKE_Y 0x02
|
||||
#define ROTLIKE_Z 0x04
|
||||
|
|
Loading…
Reference in New Issue