Cleanup: format

This commit is contained in:
Campbell Barton 2022-05-06 18:27:44 +10:00
parent 2c75857f9f
commit 12a1fa9cf4
2 changed files with 20 additions and 17 deletions

View File

@ -226,7 +226,8 @@ static void execute_optix_task(TaskPool &pool, OptixTask task, OptixResult &fail
const OptixResult result = optixTaskExecute(task, additional_tasks, 16, &num_additional_tasks);
if (result == OPTIX_SUCCESS) {
for (unsigned int i = 0; i < num_additional_tasks; ++i) {
pool.push(function_bind(&execute_optix_task, std::ref(pool), additional_tasks[i], std::ref(failure_reason)));
pool.push(function_bind(
&execute_optix_task, std::ref(pool), additional_tasks[i], std::ref(failure_reason)));
}
}
else {

View File

@ -1259,14 +1259,15 @@ static PyObject *bpy_bmesh_select_flush(BPy_BMesh *self, PyObject *value)
Py_RETURN_NONE;
}
PyDoc_STRVAR(bpy_bmesh_normal_update_doc,
".. method:: normal_update()\n"
"\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");
PyDoc_STRVAR(
bpy_bmesh_normal_update_doc,
".. method:: normal_update()\n"
"\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)
{
@ -1783,14 +1784,15 @@ static PyObject *bpy_bmedge_other_vert(BPy_BMEdge *self, BPy_BMVert *value)
Py_RETURN_NONE;
}
PyDoc_STRVAR(bpy_bmedge_normal_update_doc,
".. method:: normal_update()\n"
"\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");
PyDoc_STRVAR(
bpy_bmedge_normal_update_doc,
".. method:: normal_update()\n"
"\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)
{
BPY_BM_CHECK_OBJ(self);