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:
Joshua Leung 2006-11-09 09:01:20 +00:00
parent 5782a80d70
commit f645e51256
2 changed files with 1 additions and 16 deletions

View File

@ -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:

View File

@ -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