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

@@ -2224,7 +2224,7 @@ void special_aftertrans_update(TransInfo *t)
act= ob->action;
if (!act)
act= ob->action= add_empty_action(ID_PO);
act= ob->action= add_empty_action("Action");
for (pchan=pose->chanbase.first; pchan; pchan=pchan->next){
if (pchan->bone->flag & BONE_TRANSFORM){