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:
@@ -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 );
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user