Adding a new way of dealing with library data in blender, Blender.Base

Has a number of advantages over the existing method, described here.
http://wiki.blender.org/index.php/User:Ideasman42#Post_2.43_Update_to_the_Python_API

Only missing functionality is the ability to add new data through Base.scenes.new('name'), where scenes could be meshes, texts etc.

Other changes are minor,
Scene.h, bad var name in definition.
Text.c/h - moved the Python Struct into the header file, added BPy_Text_Check()
This commit is contained in:
2007-02-22 14:37:30 +00:00
parent def30c5ff9
commit 1190b45263
6 changed files with 791 additions and 9 deletions

View File

@@ -90,14 +90,6 @@ struct PyMethodDef M_Text_methods[] = {
{NULL, NULL, 0, NULL}
};
/*****************************************************************************/
/* Python BPy_Text structure definition: */
/*****************************************************************************/
typedef struct {
PyObject_HEAD Text * text;
} BPy_Text;
static int Text_IsLinked( BPy_Text * self );
/*****************************************************************************/