Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-03-12 09:21:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-03-12 09:21:58 +0300
commit021cd4aac3f28f39b39d4e5a4434d17999106f82 (patch)
treebc1c14b8a6d252e208106dda0cee696dfd4e6d98 /source/blender/blenkernel/intern/text.c
parent268fdb742532860120071c2886ee1811a6ead3b3 (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/blenkernel/intern/text.c')
-rw-r--r--source/blender/blenkernel/intern/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/text.c b/source/blender/blenkernel/intern/text.c
index e17db258173..ea0dabe1e81 100644
--- a/source/blender/blenkernel/intern/text.c
+++ b/source/blender/blenkernel/intern/text.c
@@ -159,7 +159,7 @@ Text *add_empty_text(char *name)
Text *ta;
TextLine *tmp;
- ta= alloc_libblock(&G.main->text, ID_TXT, "Text");
+ ta= alloc_libblock(&G.main->text, ID_TXT, name);
ta->id.us= 1;
ta->name= NULL;