Cleanup: clang-tidy, clang-format & spelling
This commit is contained in:
parent
685ceaa2f7
commit
9dff3de6ac
Notes:
blender-bot
2023-02-14 00:44:02 +01:00
Referenced by issue #91360, internal error: modal gizmo-map handler has invalid area
|
@ -1214,7 +1214,7 @@ void EEVEE_lightprobes_refresh_planar(EEVEE_ViewLayerData *sldata, EEVEE_Data *v
|
|||
|
||||
common_data->ray_type = EEVEE_RAY_GLOSSY;
|
||||
common_data->ray_depth = 1.0f;
|
||||
/* Planar reflections are rendered at the hiz resolution, so no need to scalling. */
|
||||
/* Planar reflections are rendered at the `hiz` resolution, so no need to scaling. */
|
||||
copy_v2_fl(common_data->hiz_uv_scale, 1.0f);
|
||||
|
||||
GPU_uniformbuf_update(sldata->common_ubo, &sldata->common_data);
|
||||
|
@ -1240,7 +1240,7 @@ void EEVEE_lightprobes_refresh_planar(EEVEE_ViewLayerData *sldata, EEVEE_Data *v
|
|||
}
|
||||
|
||||
if (DRW_state_is_image_render()) {
|
||||
/* Sort transparents because planar reflections could have re-sorted them. */
|
||||
/* Sort the transparent passes because planar reflections could have re-sorted them. */
|
||||
DRW_pass_sort_shgroup_z(vedata->psl->transparent_pass);
|
||||
}
|
||||
|
||||
|
|
|
@ -576,7 +576,7 @@ static void snap_gizmo_setup(wmGizmo *gz)
|
|||
SnapGizmo3D *snap_gizmo = (SnapGizmo3D *)gz;
|
||||
wmKeyConfig *keyconf = gz->parent_gzgroup->type->keyconf;
|
||||
if (!keyconf) {
|
||||
/* It can happen when gizmogrouptype is not linked at startup. */
|
||||
/* It can happen when gizmo-group-type is not linked at startup. */
|
||||
keyconf = ((wmWindowManager *)G.main->wm.first)->defaultconf;
|
||||
}
|
||||
snap_gizmo->keymap = WM_modalkeymap_find(keyconf, "Generic Gizmo Tweak Modal Map");
|
||||
|
|
|
@ -128,8 +128,8 @@ bool ED_transform_snap_object_project_ray_all(SnapObjectContext *sctx,
|
|||
|
||||
short ED_transform_snap_object_project_view3d_ex(struct SnapObjectContext *sctx,
|
||||
struct Depsgraph *depsgraph,
|
||||
const ARegion *region,
|
||||
const View3D *v3d,
|
||||
const ARegion *region,
|
||||
const View3D *v3d,
|
||||
const unsigned short snap_to,
|
||||
const struct SnapObjectParams *params,
|
||||
const float mval[2],
|
||||
|
|
|
@ -48,7 +48,7 @@ static Mesh *mesh_edge_split(const Mesh &mesh, const IndexMask selection)
|
|||
|
||||
BM_mesh_edgesplit(bm, false, true, false);
|
||||
|
||||
Mesh *result = BKE_mesh_from_bmesh_for_eval_nomain(bm, NULL, &mesh);
|
||||
Mesh *result = BKE_mesh_from_bmesh_for_eval_nomain(bm, nullptr, &mesh);
|
||||
BM_mesh_free(bm);
|
||||
|
||||
BKE_mesh_normals_tag_dirty(result);
|
||||
|
|
Loading…
Reference in New Issue