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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-08-08 20:28:10 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-08-08 20:28:10 +0400
commita1d560fc899df335f11ff5382359f431f8f835a2 (patch)
treee95f31daa9bbd7fc7298d7f340ed60d975312d85 /source/blender/freestyle/intern/python/BPy_IntegrationType.cpp
parent56c76ba21cc8798c42a3ed566d658bac273b364b (diff)
Fixed refcount issues in the Python API.
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_IntegrationType.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_IntegrationType.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp b/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp
index d794b0c560e..adab3636b0d 100644
--- a/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp
+++ b/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp
@@ -171,6 +171,7 @@ PyMODINIT_FUNC IntegrationType_Init( PyObject *module )
m = Py_InitModule3("Blender.Freestyle.Integrator", module_functions, module_docstring);
if (m == NULL)
return;
+ Py_INCREF(m);
PyModule_AddObject(module, "Integrator", m);
// from Integrator import *