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:
-rw-r--r--source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp1
-rw-r--r--source/blender/freestyle/intern/python/BPy_IntegrationType.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp b/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp
index 7a651dafc02..94254084400 100644
--- a/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp
+++ b/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp
@@ -50,6 +50,7 @@ void ContextFunctions_Init( PyObject *module )
m = Py_InitModule3("Blender.Freestyle.ContextFunctions", module_functions, module_docstring);
if (m == NULL)
return;
+ Py_INCREF(m);
PyModule_AddObject(module, "ContextFunctions", m);
// from ContextFunctions import *
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 *