From 18957ff5a87a24bcb55cddfd1243e9e4c4010304 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 26 Sep 2005 16:13:00 +0000 Subject: [PATCH] Two more 'shape' fixes; - adding new Shape didn't set correct Ipocurve code... so you could not even add new curves - the keylines (first channel) always came back in display... ancient error --- source/blender/src/editipo.c | 4 +++- source/blender/src/editkey.c | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/source/blender/src/editipo.c b/source/blender/src/editipo.c index cf833b3f1d4..a72aa2ddd83 100644 --- a/source/blender/src/editipo.c +++ b/source/blender/src/editipo.c @@ -795,7 +795,9 @@ void make_key_editipo(SpaceIpo *si) if(ei->icu) { ei->flag= ei->icu->flag; } - else if(a==0) ei->flag |= IPO_VISIBLE; + else if(a==0) + if(key && key->type==KEY_NORMAL) + ei->flag |= IPO_VISIBLE; } ei= si->editipo; diff --git a/source/blender/src/editkey.c b/source/blender/src/editkey.c index 232080ba884..345c48d789f 100644 --- a/source/blender/src/editkey.c +++ b/source/blender/src/editkey.c @@ -198,6 +198,7 @@ static void rvk_slider_func(void *voidkey, void *voidkeynum) allqueue (REDRAWACTION, 0); allqueue (REDRAWNLA, 0); allqueue (REDRAWIPO, 0); + allspace(REMAKEIPO, 0); } @@ -349,10 +350,12 @@ static KeyBlock *add_keyblock(Key *key) tot= BLI_countlist(&key->block); if(tot==1) strcpy(kb->name, "Basis"); else sprintf(kb->name, "Key %d", tot-1); + kb->adrcode= tot-1; key->totkey++; if(key->totkey==1) key->refkey= kb; + if(key->type == KEY_RELATIVE) kb->pos= curpos+0.1; else {