From f645e51256265b3de2574aa0620df53b4f2aa6f4 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Thu, 9 Nov 2006 09:01:20 +0000 Subject: [PATCH] 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) --- source/blender/blenloader/intern/readfile.c | 15 --------------- source/blender/makesdna/DNA_constraint_types.h | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index f9a01721046..8a1612695e3 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -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: diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h index aa9625bd31b..fcfbe5790dc 100644 --- a/source/blender/makesdna/DNA_constraint_types.h +++ b/source/blender/makesdna/DNA_constraint_types.h @@ -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