diff options
author | Toni Alatalo <antont@kyperjokki.fi> | 2005-11-10 21:12:53 +0300 |
---|---|---|
committer | Toni Alatalo <antont@kyperjokki.fi> | 2005-11-10 21:12:53 +0300 |
commit | 4c76b74b008d40e4e3f2bde138e618103b8cbd62 (patch) | |
tree | a9fd1b3a78c01515635727600e64da70872fd246 /source/blender/src/editipo_mods.c | |
parent | 44ed7f25b732703cb27eb2afa69b1d7fe54632e0 (diff) |
added changing the extending / extrapolation type of the IPO curves of selected actions in the action editor (to the menu - code to handle hotkey (to rise a popup) is there too but unused & untested now).
Diffstat (limited to 'source/blender/src/editipo_mods.c')
-rw-r--r-- | source/blender/src/editipo_mods.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/src/editipo_mods.c b/source/blender/src/editipo_mods.c index fc890a8bd9f..d228effc951 100644 --- a/source/blender/src/editipo_mods.c +++ b/source/blender/src/editipo_mods.c @@ -669,6 +669,16 @@ void setipotype_ipo(Ipo *ipo, int code) } } +void setexprap_ipoloop(Ipo *ipo, int code) +{ + IpoCurve *icu; + + /* Loop through each curve in the Ipo + */ + for (icu=ipo->curve.first; icu; icu=icu->next) + icu->extrap= code; +} + void set_ipotype(void) { EditIpo *ei; @@ -1121,5 +1131,3 @@ void set_exprap_ipo(int mode) editipo_changed(G.sipo, 1); BIF_undo_push("Set extrapolation Ipo"); } - - |