diff options
author | Ton Roosendaal <ton@blender.org> | 2003-10-28 17:20:03 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-10-28 17:20:03 +0300 |
commit | 4bec8ba7d53e4b90c683e183f1090a859a0e5a0e (patch) | |
tree | 13a008eb49af37fa42fedef7038adb87ae278871 /source/blender/src/editipo.c | |
parent | c6ec4cb984b43c762d8f55d5b24d9c4f617cb4ee (diff) |
Fixing loose ends:
- nkey menu for buttonswindow (hex values) couldnt be restored yet, is
for next release
- replaced Nkey in IpoWindow with Panel, this now displays the buttons
that were formerly in 'anim buttons' as well; to view the boundbox
values of all visible curves, and adjust it.
- the new panel also has the 'set speed' option, fixed stuff in it and
added better errorwarning... still not a very well coded tool!
Diffstat (limited to 'source/blender/src/editipo.c')
-rw-r--r-- | source/blender/src/editipo.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source/blender/src/editipo.c b/source/blender/src/editipo.c index 84e40c4a8a4..3f98ec4a496 100644 --- a/source/blender/src/editipo.c +++ b/source/blender/src/editipo.c @@ -673,7 +673,7 @@ void scale_editipo() facx= (G.sipo->tot.xmax-G.sipo->tot.xmin)/(G.sipo->v2d.tot.xmax-G.sipo->v2d.tot.xmin); facy= (G.sipo->tot.ymax-G.sipo->tot.ymin)/(G.sipo->v2d.tot.ymax-G.sipo->v2d.tot.ymin); - + ei= G.sipo->editipo; if(ei==0) return; for(a=0; a<G.sipo->totipo; a++, ei++) { @@ -1840,7 +1840,6 @@ EditIpo *get_editipo() get_status_editipo(); if(totipo_edit>1) { - error("Too many editipo's"); return 0; } if(G.sipo->editipo==0) return 0; @@ -2102,8 +2101,11 @@ void add_vert_ipo() if(mval[0]>G.v2d->mask.xmax) return; ei= get_editipo(); - if(ei==0) return; - + if(ei==0) { + error("Too many editipo's"); + return; + } + areamouseco_to_ipoco(G.v2d, mval, &x, &y); if(ei->icu==0) { @@ -3459,7 +3461,7 @@ void set_speed_editipo(float speed) didit= 1; } else { - error("Cannot set speed"); + error("Only works for 3 visible curves with handles"); } } } |