diff options
author | Ton Roosendaal <ton@blender.org> | 2005-10-29 18:23:43 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-10-29 18:23:43 +0400 |
commit | 34da58921bd8de77fd78674c44159eef497fb2fc (patch) | |
tree | 47ea0ce590256d9964e6b14c3b20ff452dcd88fd /source/blender/src/drawipo.c | |
parent | e6f5f9bf85e1bcc51d10899be259ba7ff21428f3 (diff) |
Remainder todo from Shape Action recode; the drawipo.c Panel code still
was referencing Key pointers in spaceipo->from, this has to be Object *.
Thanks Johnny for the report!
Diffstat (limited to 'source/blender/src/drawipo.c')
-rw-r--r-- | source/blender/src/drawipo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/drawipo.c b/source/blender/src/drawipo.c index 59e2779fe50..3baf2120d66 100644 --- a/source/blender/src/drawipo.c +++ b/source/blender/src/drawipo.c @@ -1471,7 +1471,7 @@ static void draw_key(SpaceIpo *sipo, int visible) unsigned int col; int index; - key= (Key *)sipo->from; + key= ob_get_key((Object *)sipo->from); if(key==NULL) return; @@ -1554,7 +1554,7 @@ static void boundbox_ipo_curves(SpaceIpo *si) } /* keylines? */ if(si->blocktype==ID_KE) { - key= (Key *)si->from; + key= ob_get_key((Object *)si->from); if(key && key->block.first) { kb= key->block.first; if(kb->pos < si->v2d.tot.ymin) si->v2d.tot.ymin= kb->pos; @@ -1613,7 +1613,7 @@ static void ipo_editvertex_buts(uiBlock *block, SpaceIpo *si, float min, float m /* check for keys */ if(tot==0) { if(G.sipo->blocktype==ID_KE) { - Key *key= (Key *)G.sipo->from; + Key *key= ob_get_key((Object *)G.sipo->from); KeyBlock *kb; if(key==NULL || ob->shapenr==0) return; @@ -1656,7 +1656,7 @@ static void ipo_editvertex_buts(uiBlock *block, SpaceIpo *si, float min, float m VecSubf(median, si->median, median); if(G.sipo->blocktype==ID_KE) { - Key *key= (Key *)G.sipo->from; + Key *key= ob_get_key((Object *)G.sipo->from); KeyBlock *kb; if(key==NULL || ob->shapenr==0) return; |