From 9615532ccb8290492bf076cdc7ad7a6ecb9d9311 Mon Sep 17 00:00:00 2001 From: Willian Padovani Germano Date: Sun, 10 Feb 2008 21:12:44 +0000 Subject: == Pynodes == 1) Trying to bring back compatibility with Python2.3. 2) Adding some stubs to compile blender player again on linux. Please tell me if Blender still doesn't compile with py 2.3 or if the player isn't compiling. There was a binreloc related stub I needed to add, so probably the player wasn't compiling before the pynodes commit. Thanks PanzerMKZ for reporting and testing part of the fix to py 2.3. --- source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/nodes') diff --git a/source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c b/source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c index 3b9ef5ceb55..4c4044f6bce 100644 --- a/source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c +++ b/source/blender/nodes/intern/SHD_nodes/SHD_dynamic.c @@ -28,6 +28,7 @@ */ #include +#include #include #include "DNA_text_types.h" @@ -352,7 +353,7 @@ static int node_dynamic_parse(struct bNode *node) Py_DECREF(sockets); Py_DECREF(args); - if (!PyErr_Occurred() && pynode && PyObject_TypeCheck(pynode, &Node_Type)==1) { + if (!PyErr_Occurred() && pynode && pytype_is_pynode(pynode)) { InitNode((BPy_Node *)(pynode), node); nsd->node = pynode; node->typeinfo->execfunc = node_dynamic_exec_cb; -- cgit v1.2.3