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
This commit is contained in:
Ton Roosendaal 2005-09-26 16:13:00 +00:00
parent c7f2c2c612
commit 18957ff5a8
2 changed files with 6 additions and 1 deletions

@ -795,7 +795,9 @@ void make_key_editipo(SpaceIpo *si)
if(ei->icu) { if(ei->icu) {
ei->flag= ei->icu->flag; 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; ei= si->editipo;

@ -198,6 +198,7 @@ static void rvk_slider_func(void *voidkey, void *voidkeynum)
allqueue (REDRAWACTION, 0); allqueue (REDRAWACTION, 0);
allqueue (REDRAWNLA, 0); allqueue (REDRAWNLA, 0);
allqueue (REDRAWIPO, 0); allqueue (REDRAWIPO, 0);
allspace(REMAKEIPO, 0);
} }
@ -349,10 +350,12 @@ static KeyBlock *add_keyblock(Key *key)
tot= BLI_countlist(&key->block); tot= BLI_countlist(&key->block);
if(tot==1) strcpy(kb->name, "Basis"); if(tot==1) strcpy(kb->name, "Basis");
else sprintf(kb->name, "Key %d", tot-1); else sprintf(kb->name, "Key %d", tot-1);
kb->adrcode= tot-1;
key->totkey++; key->totkey++;
if(key->totkey==1) key->refkey= kb; if(key->totkey==1) key->refkey= kb;
if(key->type == KEY_RELATIVE) if(key->type == KEY_RELATIVE)
kb->pos= curpos+0.1; kb->pos= curpos+0.1;
else { else {