diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-12-15 21:18:09 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-12-15 21:18:09 +0300 |
commit | 050dc02134d71ba984fd1dd900ffccf45cbd6865 (patch) | |
tree | c439c24bbc22034b3ac0b7419cacc41865a1c62d /source/blender/python/api2_2x/EXPP_interface.c | |
parent | 436bb963f128b96f871d1ae7fa651cf7c9d810d1 (diff) |
Chris reported build errors w/ traditional makefiles.
This commit moves the 2 undefined references to BPY_interface.c and
changes things a little, hopefully fixing the problem. I had to add a new dir,
source/blender/include/ to auto*'s Makefile.am in source/blender/python/.
Thanks Chris for the report, and Jiri, for adding a missing declaration.
Diffstat (limited to 'source/blender/python/api2_2x/EXPP_interface.c')
-rw-r--r-- | source/blender/python/api2_2x/EXPP_interface.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/source/blender/python/api2_2x/EXPP_interface.c b/source/blender/python/api2_2x/EXPP_interface.c index 54076e0fce5..351ff3e5ec4 100644 --- a/source/blender/python/api2_2x/EXPP_interface.c +++ b/source/blender/python/api2_2x/EXPP_interface.c @@ -33,8 +33,6 @@ #include <Python.h> -#include <BIF_space.h> -#include <BIF_screen.h> #include <BKE_global.h> #include <BKE_library.h> #include <BKE_main.h> @@ -183,42 +181,3 @@ TODO: Check this */ return (scriptlink); } - -void BPY_clear_script (Script *script) -{ - if (!script) return; - - Py_XDECREF((PyObject *)script->py_globaldict); - Py_XDECREF((PyObject *)script->py_button); - Py_XDECREF((PyObject *)script->py_event); - Py_XDECREF((PyObject *)script->py_draw); -} - -void EXPP_move_to_spacescript (Script *script) -{ /* used by BPY_txt_do_python when a text is already being executed */ - SpaceScript *sc; - newspace(curarea, SPACE_SCRIPT); - sc = curarea->spacedata.first; - sc->script = script; - return; -} - -/*****************************************************************************/ -/* Description: This function frees a finished (flags == 0) script. */ -/*****************************************************************************/ -void BPY_free_finished_script(Script *script) -{ - PyObject *d = script->py_globaldict; - - if (d) { - PyDict_Clear (d); - Py_DECREF (d); /* Release dictionary. */ - script->py_globaldict = NULL; - } - - if (script->lastspace != SPACE_SCRIPT) - newspace (curarea, script->lastspace); - - free_libblock(&G.main->script, script); - return; -} |