Changeset View
Changeset View
Standalone View
Standalone View
source/blender/python/bmesh/bmesh_py_types.c
| Show First 20 Lines • Show All 1,246 Lines • ▼ Show 20 Lines | static PyObject *bpy_bmesh_select_flush(BPy_BMesh *self, PyObject *value) | ||||
| if ((param = PyC_Long_AsBool(value)) == -1) { | if ((param = PyC_Long_AsBool(value)) == -1) { | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| if (param) { | if (param) { | ||||
| BM_mesh_select_flush(self->bm); | BM_mesh_select_flush(self->bm); | ||||
| } | } | ||||
| else { | else { | ||||
Blendify: Instead of
```
`is_wire`
```
Write:
```
:attr:`is_wire`
```
This will link to `is_wire`… | |||||
| BM_mesh_deselect_flush(self->bm); | BM_mesh_deselect_flush(self->bm); | ||||
| } | } | ||||
| Py_RETURN_NONE; | Py_RETURN_NONE; | ||||
| } | } | ||||
| PyDoc_STRVAR(bpy_bmesh_normal_update_doc, | PyDoc_STRVAR(bpy_bmesh_normal_update_doc, | ||||
| ".. method:: normal_update()\n" | ".. method:: normal_update()\n" | ||||
| "\n" | "\n" | ||||
| " Update mesh normals.\n"); | " Update normals of mesh faces and verts.\n" | ||||
| "\n" | |||||
| " .. note::\n" | |||||
| "\n" | |||||
| " The normal of any vertex where :attr:`is_wire` is True will be a zero vector.\n"); | |||||
| static PyObject *bpy_bmesh_normal_update(BPy_BMesh *self) | static PyObject *bpy_bmesh_normal_update(BPy_BMesh *self) | ||||
| { | { | ||||
| BPY_BM_CHECK_OBJ(self); | BPY_BM_CHECK_OBJ(self); | ||||
| BM_mesh_normals_update(self->bm); | BM_mesh_normals_update(self->bm); | ||||
| Py_RETURN_NONE; | Py_RETURN_NONE; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 332 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| BPY_BM_CHECK_OBJ(self); | BPY_BM_CHECK_OBJ(self); | ||||
| return PyFloat_FromDouble(BM_vert_calc_shell_factor(self->v)); | return PyFloat_FromDouble(BM_vert_calc_shell_factor(self->v)); | ||||
| } | } | ||||
| PyDoc_STRVAR(bpy_bmvert_normal_update_doc, | PyDoc_STRVAR(bpy_bmvert_normal_update_doc, | ||||
| ".. method:: normal_update()\n" | ".. method:: normal_update()\n" | ||||
| "\n" | "\n" | ||||
| " Update vertex normal.\n"); | " Update vertex normal.\n" | ||||
| " This does not update the normals of adjoining faces.\n" | |||||
| "\n" | |||||
| " .. note::\n" | |||||
| "\n" | |||||
| " The vertex normal will be a zero vector if vertex :attr:`is_wire` is True.\n"); | |||||
| static PyObject *bpy_bmvert_normal_update(BPy_BMVert *self) | static PyObject *bpy_bmvert_normal_update(BPy_BMVert *self) | ||||
| { | { | ||||
| BPY_BM_CHECK_OBJ(self); | BPY_BM_CHECK_OBJ(self); | ||||
| BM_vert_normal_update(self->v); | BM_vert_normal_update(self->v); | ||||
| Py_RETURN_NONE; | Py_RETURN_NONE; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | static PyObject *bpy_bmedge_other_vert(BPy_BMEdge *self, BPy_BMVert *value) | ||||
| /* could raise an exception here */ | /* could raise an exception here */ | ||||
| Py_RETURN_NONE; | Py_RETURN_NONE; | ||||
| } | } | ||||
| PyDoc_STRVAR(bpy_bmedge_normal_update_doc, | PyDoc_STRVAR(bpy_bmedge_normal_update_doc, | ||||
| ".. method:: normal_update()\n" | ".. method:: normal_update()\n" | ||||
| "\n" | "\n" | ||||
| " Update edges vertex normals.\n"); | " Update normals of all connected faces and the edge verts.\n" | ||||
| "\n" | |||||
| " .. note::\n" | |||||
| "\n" | |||||
| " The normal of edge vertex will be a zero vector if vertex :attr:`is_wire` is True.\n"); | |||||
| static PyObject *bpy_bmedge_normal_update(BPy_BMEdge *self) | static PyObject *bpy_bmedge_normal_update(BPy_BMEdge *self) | ||||
| { | { | ||||
| BPY_BM_CHECK_OBJ(self); | BPY_BM_CHECK_OBJ(self); | ||||
| BM_edge_normals_update(self->e); | BM_edge_normals_update(self->e); | ||||
| Py_RETURN_NONE; | Py_RETURN_NONE; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 219 Lines • ▼ Show 20 Lines | static PyObject *bpy_bmface_calc_center_bounds(BPy_BMFace *self) | ||||
| BPY_BM_CHECK_OBJ(self); | BPY_BM_CHECK_OBJ(self); | ||||
| BM_face_calc_center_bounds(self->f, cent); | BM_face_calc_center_bounds(self->f, cent); | ||||
| return Vector_CreatePyObject(cent, 3, NULL); | return Vector_CreatePyObject(cent, 3, NULL); | ||||
| } | } | ||||
| PyDoc_STRVAR(bpy_bmface_normal_update_doc, | PyDoc_STRVAR(bpy_bmface_normal_update_doc, | ||||
| ".. method:: normal_update()\n" | ".. method:: normal_update()\n" | ||||
| "\n" | "\n" | ||||
| " Update face's normal.\n"); | " Update face normal based on the positions of the face verts.\n" | ||||
| " This does not update the normals of face verts.\n"); | |||||
| static PyObject *bpy_bmface_normal_update(BPy_BMFace *self) | static PyObject *bpy_bmface_normal_update(BPy_BMFace *self) | ||||
| { | { | ||||
| BPY_BM_CHECK_OBJ(self); | BPY_BM_CHECK_OBJ(self); | ||||
| BM_face_normal_update(self->f); | BM_face_normal_update(self->f); | ||||
| Py_RETURN_NONE; | Py_RETURN_NONE; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,242 Lines • Show Last 20 Lines | |||||
Instead of
Write:
This will link to is_wire documentation, this change can also be applied elsewhere.