From 09357a91ce09f5cfecbaf78a54acf400ba313ef1 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 21 Jan 2009 06:14:37 +0000 Subject: [PATCH] Animato - Quick bugfix Added missing 'break;' 's skipped during the sprint towards the "first working prototype" stage. The temporary Insert Keyframe operator should now work correctly for rotation/scaling keys now by not adding extra keys. --- source/blender/editors/animation/keyframing.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index afefd842639..b4137cd7e68 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -2051,10 +2051,12 @@ static int insert_key_exec (bContext *C, wmOperator *op) success+= insertkey(id, "scale", 0, cfra, 0); success+= insertkey(id, "scale", 1, cfra, 0); success+= insertkey(id, "scale", 2, cfra, 0); + break; case 1: /* rotation */ success+= insertkey(id, "rotation", 0, cfra, 0); success+= insertkey(id, "rotation", 1, cfra, 0); success+= insertkey(id, "rotation", 2, cfra, 0); + break; default: /* location */ success+= insertkey(id, "location", 0, cfra, 0); success+= insertkey(id, "location", 1, cfra, 0);