diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-03-12 09:21:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-03-12 09:21:58 +0300 |
commit | 021cd4aac3f28f39b39d4e5a4434d17999106f82 (patch) | |
tree | bc1c14b8a6d252e208106dda0cee696dfd4e6d98 /source/blender/src/header_ipo.c | |
parent | 268fdb742532860120071c2886ee1811a6ead3b3 (diff) |
python api
removed most custom add_*data* wrappers from Main.c
removed makeCurrent() from Text.c (was never in a release), use "bpy.texts.active = text" now
clamp new image sizes
made add_empty_action accept a string rather then a blocktype since the blocktype was only being used to choose one of 3 strings anyway.
Diffstat (limited to 'source/blender/src/header_ipo.c')
-rw-r--r-- | source/blender/src/header_ipo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/header_ipo.c b/source/blender/src/header_ipo.c index 163fd356fa4..6076129c641 100644 --- a/source/blender/src/header_ipo.c +++ b/source/blender/src/header_ipo.c @@ -1067,7 +1067,7 @@ void do_ipo_buttons(short event) notice("Note: Layer Ipo doesn't work in Actions"); if(ob->action==NULL) - ob->action= add_empty_action(ID_OB); + ob->action= add_empty_action("ObAction"); achan= verify_action_channel(ob->action, "Object"); if(achan->ipo==NULL && ob->ipo) { achan->ipo= ob->ipo; @@ -1114,7 +1114,7 @@ void do_ipo_buttons(short event) bActionChannel *achan; if(ob->action==NULL) - ob->action= add_empty_action(ID_KE); + ob->action= add_empty_action("ShapeAction"); achan= verify_action_channel(ob->action, "Shape"); if(achan->ipo==NULL && key->ipo) { achan->ipo= key->ipo; |