diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-05-05 08:46:47 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-05-05 08:46:47 +0400 |
commit | 554e2fe119572920a73d704de9d0c9ba80502495 (patch) | |
tree | 266a1108af2d6a935838688b137c1c69e4841684 /source/blender/src/header_ipo.c | |
parent | 610fca29066560cd16d956270b77fbf684eef4a4 (diff) |
Quite a few bugfixes:
* Constraint sliders in Action Editor didn't update buttons window
* Homekey in IPO Editor didn't respect scaling.
* With Preview Range set, using the SKEY and EKEY hotkeys in the Timeline
to change the extents of it, resulted to the NLA editor not being
refreshed. (Note: I haven't actually seen this happening)
* Keyframing options 'Avail' and 'Needed' didn't work for Objects
when they had an ObAction. The problem was that the code assumed
that the object had an ipo-block associated with it, but that is
not the case when you have an Object Action for that object.
Diffstat (limited to 'source/blender/src/header_ipo.c')
-rw-r--r-- | source/blender/src/header_ipo.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/src/header_ipo.c b/source/blender/src/header_ipo.c index d4041a817db..1c117e0331e 100644 --- a/source/blender/src/header_ipo.c +++ b/source/blender/src/header_ipo.c @@ -961,6 +961,12 @@ void do_ipo_buttons(short event) ei= G.sipo->editipo; if(ei==0) return; + + /* map ipo-points for drawing if scaled ipo */ + if (OBACT && OBACT->action && G.sipo->pin==0 && G.sipo->actname) { + actstrip_map_ipo_keys(OBACT, G.sipo->ipo, 0, 0); + } + for(a=0; a<G.sipo->totipo; a++, ei++) { if ISPOIN(ei, flag & IPO_VISIBLE, icu) { @@ -973,6 +979,11 @@ void do_ipo_buttons(short event) else BLI_union_rctf(&(v2d->tot), &(ei->icu->totrct)); } } + + /* undo mapping of ipo-points for drawing if scaled ipo */ + if (OBACT && OBACT->action && G.sipo->pin==0 && G.sipo->actname) { + actstrip_map_ipo_keys(OBACT, G.sipo->ipo, 1, 0); + } /* speciale home */ if(G.qual & LR_SHIFTKEY) { |