diff options
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_MediumType.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_MediumType.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_MediumType.cpp b/source/blender/freestyle/intern/python/BPy_MediumType.cpp index b29c4e8057a..915f0c41a56 100644 --- a/source/blender/freestyle/intern/python/BPy_MediumType.cpp +++ b/source/blender/freestyle/intern/python/BPy_MediumType.cpp @@ -96,11 +96,13 @@ PyLongObject _BPy_MediumType_OPAQUE_MEDIUM = { int MediumType_Init(PyObject *module) { - if (module == NULL) + if (module == NULL) { return -1; + } - if (PyType_Ready(&MediumType_Type) < 0) + if (PyType_Ready(&MediumType_Type) < 0) { return -1; + } Py_INCREF(&MediumType_Type); PyModule_AddObject(module, "MediumType", (PyObject *)&MediumType_Type); |