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:
authorHans Goudey <h.goudey@me.com>2022-04-12 19:08:21 +0300
committerHans Goudey <h.goudey@me.com>2022-04-12 19:08:21 +0300
commit77db370cb6e032d477bf48dbeb8bb608ba2b643f (patch)
treee7b67956cefc05d89e294c2a9e79428d7c915ba2
parent05a1770ab069e834bfe11c4d5e7675e3b542f53c (diff)
Fix: BMesh Python API errors after vertex_normals addition
64cd927519748bbd50 didn't update the argument parsing strings, and updated the docstring of `from_object` incorrectly. Fixes T97025, T97213
-rw-r--r--source/blender/python/bmesh/bmesh_py_types.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types.c b/source/blender/python/bmesh/bmesh_py_types.c
index 46f89dd4103..1d9fc32f55b 100644
--- a/source/blender/python/bmesh/bmesh_py_types.c
+++ b/source/blender/python/bmesh/bmesh_py_types.c
@@ -1061,8 +1061,9 @@ PyDoc_STRVAR(bpy_bmesh_from_object_doc,
" :arg cage: Get the mesh as a deformed cage.\n"
" :type cage: boolean\n"
" :arg face_normals: Calculate face normals.\n"
+ " :type face_normals: boolean\n"
" :arg vertex_normals: Calculate vertex normals.\n"
- " :type face_normals: boolean\n");
+ " :type vertex_normals: boolean\n");
static PyObject *bpy_bmesh_from_object(BPy_BMesh *self, PyObject *args, PyObject *kw)
{
static const char *kwlist[] = {
@@ -1083,7 +1084,7 @@ static PyObject *bpy_bmesh_from_object(BPy_BMesh *self, PyObject *args, PyObject
if (!PyArg_ParseTupleAndKeywords(args,
kw,
- "OO|$O&O&:from_object",
+ "OO|$O&O&O&:from_object",
(char **)kwlist,
&py_object,
&py_depsgraph,
@@ -1190,7 +1191,7 @@ static PyObject *bpy_bmesh_from_mesh(BPy_BMesh *self, PyObject *args, PyObject *
if (!PyArg_ParseTupleAndKeywords(args,
kw,
- "O|$O&O&i:from_mesh",
+ "O|$O&O&O&i:from_mesh",
(char **)kwlist,
&py_mesh,
PyC_ParseBool,