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-02-22 17:37:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-02-22 17:37:30 +0300
commit1190b452634170f248e36c807feb76d0c005a74e (patch)
tree1fbe6ea73c1831ddd917e2fa6b13d3319eda3bca /source/blender/python/api2_2x/Blender.c
parentdef30c5ff927cf1e975f251897fc2464c3226073 (diff)
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()
Diffstat (limited to 'source/blender/python/api2_2x/Blender.c')
-rw-r--r--source/blender/python/api2_2x/Blender.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c
index 485c493fba2..cff1d08be21 100644
--- a/source/blender/python/api2_2x/Blender.c
+++ b/source/blender/python/api2_2x/Blender.c
@@ -92,6 +92,7 @@ struct ID; /*keep me up here */
#include "Window.h"
#include "World.h"
#include "Types.h"
+#include "Base.h"
//for the removefakeuser hack
#include "NLA.h" /*This must come first*/
@@ -1018,5 +1019,6 @@ void M_Blender_Init(void)
PyDict_SetItemString(dict, "Texture", Texture_Init());
PyDict_SetItemString(dict, "Window", Window_Init());
PyDict_SetItemString(dict, "World", World_Init());
+ PyDict_SetItemString(dict, "Base", Base_Init());
}