diff options
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_Iterator.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_Iterator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Iterator.cpp b/source/blender/freestyle/intern/python/BPy_Iterator.cpp index b29620cc8fe..df9f462eba9 100644 --- a/source/blender/freestyle/intern/python/BPy_Iterator.cpp +++ b/source/blender/freestyle/intern/python/BPy_Iterator.cpp @@ -158,7 +158,7 @@ PyDoc_STRVAR(Iterator_name_doc, static PyObject *Iterator_name_get(BPy_Iterator *self, void *UNUSED(closure)) { - return PyUnicode_FromString(((PyObject *)self)->ob_type->tp_name); + return PyUnicode_FromString(Py_TYPE(self)->tp_name); } PyDoc_STRVAR(Iterator_is_begin_doc, |