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:
authorCampbell Barton <ideasman42@gmail.com>2009-03-19 01:22:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-03-19 01:22:58 +0300
commit3aab50f775e4928d3ee525a999e2b4c995ae9ae4 (patch)
tree68c902e2336dd3e12f41e85cda9ade1f7025e9a0 /source/blender/python/intern/bpy_interface.c
parent43d4e3fa7efca3ae2cedfd35fa344bf2ef298a7f (diff)
* removed warnings and fixed some python refcount errors
* operator class names - Changed 'name' to '__label__' (since __name__ is already used for the class name) - Changed 'properties' to '__props__' * added a PyObject_GetAttrStringArgs(), utility function which Id like to see in pythons C api. PyObject_GetAttrStringArgs(pyob, "someattr", "foo", "bar") /* pyob.someattr.foo.bar */
Diffstat (limited to 'source/blender/python/intern/bpy_interface.c')
-rw-r--r--source/blender/python/intern/bpy_interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c
index 54f7bb55cc0..8f01d60ad4b 100644
--- a/source/blender/python/intern/bpy_interface.c
+++ b/source/blender/python/intern/bpy_interface.c
@@ -264,6 +264,7 @@ int BPY_run_python_script_space(const char *modulename, const char *func)
PyErr_SetFormat(PyExc_SystemError, "module has no function '%s.%s'\n", scpt->script.filename, func);
}
else {
+ Py_DECREF(py_func);
if (!PyCallable_Check(py_func)) {
PyErr_SetFormat(PyExc_SystemError, "module item is not callable '%s.%s'\n", scpt->script.filename, func);
}