- 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).
This commit is contained in:
2004-05-04 14:27:41 +00:00
parent 648c21947c
commit c80ec7b808
4 changed files with 79 additions and 167 deletions

View File

@@ -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());