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.
This commit is contained in:
2007-03-12 06:21:58 +00:00
parent 268fdb7425
commit 021cd4aac3
12 changed files with 88 additions and 200 deletions

View File

@@ -90,7 +90,7 @@ ListBase *get_active_constraint_channels (Object *ob, int forcevalid)
if (!forcevalid)
return NULL;
ob->action=add_empty_action(ID_PO);
ob->action=add_empty_action("Action");
}
/* Make sure we have an actionchannel */