diff options
author | Julian Eisel <julian@blender.org> | 2020-11-11 19:35:26 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-11-11 19:35:26 +0300 |
commit | ca7079a44e773a26d6f6aa6730f53a16e7de6cd5 (patch) | |
tree | b58ff6ccca5e2afd18da8365705f47112eac0a38 /source/blender/python/bmesh/bmesh_py_ops.c | |
parent | fdd9cb713e2e96e430eb022f034bfa9973afc75c (diff) | |
parent | 5b5ec0a2e910a42d7c02774a47fd9c70b6f16f06 (diff) |
Merge branch 'master' into outliner-cpp-refactoroutliner-cpp-refactor
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_ops.c')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_ops.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_ops.c b/source/blender/python/bmesh/bmesh_py_ops.c index 2168e0d1730..03a890d315c 100644 --- a/source/blender/python/bmesh/bmesh_py_ops.c +++ b/source/blender/python/bmesh/bmesh_py_ops.c @@ -166,10 +166,14 @@ static PyTypeObject bmesh_op_Type = { sizeof(BPy_BMeshOpFunc), /* tp_basicsize */ 0, /* tp_itemsize */ /* methods */ - NULL, /* tp_dealloc */ - (printfunc)NULL, /* printfunc tp_print; */ - NULL, /* getattrfunc tp_getattr; */ - NULL, /* setattrfunc tp_setattr; */ + NULL, /* tp_dealloc */ +#if PY_VERSION_HEX >= 0x03080000 + 0, /* tp_vectorcall_offset */ +#else + (printfunc)NULL, /* printfunc tp_print */ +#endif + NULL, /* getattrfunc tp_getattr; */ + NULL, /* setattrfunc tp_setattr; */ NULL, /* tp_compare */ /* DEPRECATED in python 3.0! */ (reprfunc)bpy_bmesh_op_repr, /* tp_repr */ |