1
1

Cleanup: use camel-case for struct name, wrap function arguments

This commit is contained in:
2023-03-03 16:24:14 +11:00
parent 2eaa55272d
commit f0257aa71b
2 changed files with 13 additions and 8 deletions

View File

@@ -2821,7 +2821,7 @@ static void uv_map_mirror(BMFace *efa,
* \note Even though `atan2(a+bi, c+di)` is now (multiply) defined for all
* complex inputs, we will only evaluate it with `b==0` and `d==0`.
*/
struct uv_face_branch {
struct UV_FaceBranch {
BMFace *efa;
float branch;
};
@@ -2852,11 +2852,11 @@ static float uv_sphere_project(const Scene *scene,
}
/* Similar to #BM_mesh_calc_face_groups with added connectivity information. */
blender::Vector<uv_face_branch> stack;
blender::Vector<UV_FaceBranch> stack;
stack.append({efa_init, branch_init});
while (stack.size()) {
uv_face_branch face_branch = stack.pop_last();
UV_FaceBranch face_branch = stack.pop_last();
BMFace *efa = face_branch.efa;
if (use_seams) {
@@ -3030,12 +3030,12 @@ static float uv_cylinder_project(const Scene *scene,
/* Similar to BM_mesh_calc_face_groups with added connectivity information. */
blender::Vector<uv_face_branch> stack;
blender::Vector<UV_FaceBranch> stack;
stack.append({efa_init, branch_init});
while (stack.size()) {
uv_face_branch face_branch = stack.pop_last();
UV_FaceBranch face_branch = stack.pop_last();
BMFace *efa = face_branch.efa;
if (use_seams) {

View File

@@ -141,9 +141,14 @@ static PyTypeObject bpy_lib_Type = {
PyDoc_STRVAR(
bpy_lib_load_doc,
".. method:: load(filepath, link=False, relative=False, assets_only=False,\n"
" create_liboverrides=False, reuse_liboverrides=False,\n"
" create_liboverrides_runtime=False)\n"
".. method:: load("
"filepath, "
"link=False, "
"relative=False, "
"assets_only=False, "
"create_liboverrides=False, "
"reuse_liboverrides=False, "
"create_liboverrides_runtime=False)\n"
"\n"
" Returns a context manager which exposes 2 library objects on entering.\n"
" Each object has attributes matching bpy.data which are lists of strings to be linked.\n"