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:
authorDaniel Dunbar <daniel@zuster.org>2004-05-04 18:27:41 +0400
committerDaniel Dunbar <daniel@zuster.org>2004-05-04 18:27:41 +0400
commitc80ec7b808f41e7d1aa307333d77cfc088313706 (patch)
tree44d78bc75b7e369a1780ebaac43489699ea6a711 /source/blender/python/api2_2x/Blender.c
parent648c21947c6c115209e5529de6e747e474fd64e2 (diff)
- fix silly scriptlink running code, pulled out convenient
ID_asPyObject and ID_getScriptlinks functions, moved code into BPY_interface.c (where it fit better) - EXPP_interface.c is essentially obselete now - I didn't test this, I'm sure I broke something, if a Pythonista could comment that would be nice (oh and the maintainer too).
Diffstat (limited to 'source/blender/python/api2_2x/Blender.c')
-rw-r--r--source/blender/python/api2_2x/Blender.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c
index 09ec4764fbe..a1b89cb36ad 100644
--- a/source/blender/python/api2_2x/Blender.c
+++ b/source/blender/python/api2_2x/Blender.c
@@ -211,6 +211,13 @@ void M_Blender_Init (void)
dict = PyModule_GetDict (module);
g_blenderdict = dict;
+
+ Py_INCREF(Py_False);
+ PyDict_SetItemString(dict, "bylink", Py_False);
+ Py_INCREF(Py_None);
+ PyDict_SetItemString(dict, "link", Py_None);
+ PyDict_SetItemString(dict, "event", PyString_FromString(""));
+
PyDict_SetItemString (dict, "Types", Types_Init());
PyDict_SetItemString (dict, "sys", sys_Init());
PyDict_SetItemString (dict, "Registry", Registry_Init());