diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-04-21 17:44:24 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-04-21 17:44:24 +0400 |
commit | 4cf2863a8f5ece6176f40adb6681beb2d75b8c9e (patch) | |
tree | d734778eb6386184029b47dd1f3210be85dd8cae /source/blender/nodes/intern | |
parent | aff2a11110c84fc84764c2108981411275a2dda2 (diff) |
SHD_dynamic had gen_utils functions from Mathutils, removing
Diffstat (limited to 'source/blender/nodes/intern')
-rw-r--r-- | source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c b/source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c index 88efd47fa66..9a8f2f13d65 100644 --- a/source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c +++ b/source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c @@ -51,13 +51,15 @@ static void node_dynamic_free_storage_cb(bNode *node); #ifndef DISABLE_PYTHON static PyObject *init_dynamicdict(void) { - PyObject *newscriptdict; + PyObject *newscriptdict, *item; PyGILState_STATE gilstate = PyGILState_Ensure(); newscriptdict= PyDict_New(); PyDict_SetItemString(newscriptdict, "__builtins__", PyEval_GetBuiltins()); - EXPP_dict_set_item_str(newscriptdict, "__name__", PyString_FromString("__main__")); + item= PyString_FromString("__main__"); + PyDict_SetItemString(newscriptdict, "__name__", item); + Py_DECREF(item); PyGILState_Release(gilstate); |