diff options
Diffstat (limited to 'source/blender/freestyle/intern/python/Director.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/Director.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/python/Director.cpp b/source/blender/freestyle/intern/python/Director.cpp index 0769b30ebb7..ff1d63f5f58 100644 --- a/source/blender/freestyle/intern/python/Director.cpp +++ b/source/blender/freestyle/intern/python/Director.cpp @@ -195,7 +195,7 @@ int Director_BPy_ChainingIterator_init(ChainingIterator *c_it) PyErr_SetString(PyExc_RuntimeError, "Reference to Python object (py_c_it) not initialized"); return -1; } - PyObject *result = PyObject_CallMethod((PyObject *)c_it->py_c_it, "init", NULL); + PyObject *result = PyObject_CallMethod((PyObject *)c_it->py_c_it, "init", nullptr); if (!result) { return -1; } @@ -222,7 +222,7 @@ int Director_BPy_ChainingIterator_traverse(ChainingIterator *c_it, AdjacencyIter c_it->result = ((BPy_ViewEdge *)result)->ve; } else if (result == Py_None) { - c_it->result = NULL; + c_it->result = nullptr; } else { PyErr_SetString(PyExc_RuntimeError, "traverse method returned a wrong value"); |