[Bf-blender-cvs] [3d132ead502] master: Cleanup: spelling, trailing space for comment-blocks
Campbell Barton
noreply at git.blender.org
Thu Mar 31 04:07:56 CEST 2022
Commit: 3d132ead502f792fc67117bad5d101c137f33fef
Author: Campbell Barton
Date: Thu Mar 31 13:00:10 2022 +1100
Branches: master
https://developer.blender.org/rB3d132ead502f792fc67117bad5d101c137f33fef
Cleanup: spelling, trailing space for comment-blocks
===================================================================
M intern/cycles/kernel/light/light.h
M intern/cycles/util/debug.h
M intern/ghost/intern/GHOST_WindowViewCocoa.h
M source/blender/blenkernel/BKE_curves.hh
M source/blender/blenkernel/BKE_lib_override.h
M source/blender/blenkernel/intern/gpencil_modifier.c
M source/blender/blenkernel/intern/subsurf_ccg.c
M source/blender/blenlib/BLI_cpp_type.hh
M source/blender/blenlib/intern/DLRB_tree.c
M source/blender/blenlib/intern/length_parameterize.cc
M source/blender/compositor/operations/COM_ViewerOperation.cc
M source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
M source/blender/draw/engines/image/image_drawing_mode.hh
M source/blender/draw/engines/image/image_usage.hh
M source/blender/draw/intern/draw_common_shader_shared.h
M source/blender/draw/intern/shaders/common_gpencil_lib.glsl
M source/blender/editors/curves/intern/curves_ops.cc
M source/blender/editors/gpencil/gpencil_fill.c
M source/blender/editors/gpencil/gpencil_weight_paint.c
M source/blender/editors/mesh/mesh_mirror.c
M source/blender/editors/uvedit/uvedit_select.c
M source/blender/geometry/intern/uv_parametrizer.c
M source/blender/gpu/intern/gpu_shader_create_info.hh
M source/blender/gpu/intern/gpu_viewport.c
M source/blender/gpu/metal/mtl_backend.mm
M source/blender/io/usd/intern/usd_writer_material.cc
M source/blender/makesdna/DNA_brush_types.h
M source/blender/makesrna/RNA_access.h
M source/blender/makesrna/intern/rna_scene.c
M source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc
M source/blender/nodes/geometry/nodes/node_geo_curve_spline_parameter.cc
M source/blender/nodes/geometry/nodes/node_geo_extrude_mesh.cc
===================================================================
diff --git a/intern/cycles/kernel/light/light.h b/intern/cycles/kernel/light/light.h
index b08b4ebc068..359ffd1c607 100644
--- a/intern/cycles/kernel/light/light.h
+++ b/intern/cycles/kernel/light/light.h
@@ -438,7 +438,7 @@ ccl_device bool light_sample_from_intersection(KernelGlobals kg,
const float3 dir = make_float3(klight->spot.dir[0], klight->spot.dir[1], klight->spot.dir[2]);
/* the normal of the oriented disk */
const float3 lightN = normalize(ray_P - center);
- /* we set the light normal to the outgoing direction to support texturing*/
+ /* We set the light normal to the outgoing direction to support texturing. */
ls->Ng = -ls->D;
float invarea = klight->spot.invarea;
@@ -467,7 +467,7 @@ ccl_device bool light_sample_from_intersection(KernelGlobals kg,
const float3 center = make_float3(klight->co[0], klight->co[1], klight->co[2]);
const float3 lighN = normalize(ray_P - center);
- /* we set the light normal to the outgoing direction to support texturing*/
+ /* We set the light normal to the outgoing direction to support texturing. */
ls->Ng = -ls->D;
float invarea = klight->spot.invarea;
diff --git a/intern/cycles/util/debug.h b/intern/cycles/util/debug.h
index 23a055cf52f..3565fdea17f 100644
--- a/intern/cycles/util/debug.h
+++ b/intern/cycles/util/debug.h
@@ -87,7 +87,7 @@ class DebugFlags {
/* Reset flags to their defaults. */
void reset();
- /* Whether adaptive feature based runtime compile is enabled or not.*/
+ /* Whether adaptive feature based runtime compile is enabled or not. */
bool adaptive_compile;
};
@@ -110,7 +110,7 @@ class DebugFlags {
/* Reset flags to their defaults. */
void reset();
- /* Whether adaptive feature based runtime compile is enabled or not.*/
+ /* Whether adaptive feature based runtime compile is enabled or not. */
bool adaptive_compile;
};
diff --git a/intern/ghost/intern/GHOST_WindowViewCocoa.h b/intern/ghost/intern/GHOST_WindowViewCocoa.h
index 635c0052a3a..58c029620da 100644
--- a/intern/ghost/intern/GHOST_WindowViewCocoa.h
+++ b/intern/ghost/intern/GHOST_WindowViewCocoa.h
@@ -64,7 +64,7 @@
ime.event.target_end = -1;
/* Register a function to be executed when Input Method is changed using
- * 'Control + Space' or language-specific keys (such as 'Eisu / Kana' key for Japanese).*/
+ * 'Control + Space' or language-specific keys (such as 'Eisu / Kana' key for Japanese). */
NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
[center addObserver:self
selector:@selector(ImeDidChangeCallback:)
diff --git a/source/blender/blenkernel/BKE_curves.hh b/source/blender/blenkernel/BKE_curves.hh
index 29cf38421d1..67671e46ad4 100644
--- a/source/blender/blenkernel/BKE_curves.hh
+++ b/source/blender/blenkernel/BKE_curves.hh
@@ -274,7 +274,7 @@ class CurvesGeometry : public ::CurvesGeometry {
void ensure_evaluated_offsets() const;
/**
- * Retrieve offsets into a Bezier curve's avaluated points for each control point.
+ * Retrieve offsets into a Bezier curve's evaluated points for each control point.
* Call #ensure_evaluated_offsets() first to ensure that the evaluated offsets cache is current.
*/
Span<int> bezier_evaluated_offsets_for_curve(int curve_index) const;
diff --git a/source/blender/blenkernel/BKE_lib_override.h b/source/blender/blenkernel/BKE_lib_override.h
index 2447208b49d..dfb2b900b10 100644
--- a/source/blender/blenkernel/BKE_lib_override.h
+++ b/source/blender/blenkernel/BKE_lib_override.h
@@ -383,7 +383,7 @@ bool BKE_lib_override_library_main_operations_create(struct Main *bmain, bool fo
/**
* Reset all overrides in given \a id_root, while preserving ID relations.
*
- * \param do_reset_system_override If \a true, reset the given ID as a system override one (i.e.
+ * \param do_reset_system_override: If \a true, reset the given ID as a system override one (i.e.
* non-editable).
*/
void BKE_lib_override_library_id_reset(struct Main *bmain,
@@ -392,8 +392,8 @@ void BKE_lib_override_library_id_reset(struct Main *bmain,
/**
* Reset all overrides in given \a id_root and its dependencies, while preserving ID relations.
*
- * \param do_reset_system_override If \a true, reset the given ID and all of its descendants in the
- * override hierarchy as system override ones (i.e. non-editable).
+ * \param do_reset_system_override: If \a true, reset the given ID and all of its descendants in
+ * the override hierarchy as system override ones (i.e. non-editable).
*/
void BKE_lib_override_library_id_hierarchy_reset(struct Main *bmain,
struct ID *id_root,
diff --git a/source/blender/blenkernel/intern/gpencil_modifier.c b/source/blender/blenkernel/intern/gpencil_modifier.c
index 33410b4521e..faafd1e1040 100644
--- a/source/blender/blenkernel/intern/gpencil_modifier.c
+++ b/source/blender/blenkernel/intern/gpencil_modifier.c
@@ -743,7 +743,7 @@ void BKE_gpencil_prepare_eval_data(Depsgraph *depsgraph, Scene *scene, Object *o
}
BLI_assert(ob->data != NULL);
- /* Only copy strokes from visible frames to evaluated data.*/
+ /* Only copy strokes from visible frames to evaluated data. */
gpencil_copy_visible_frames_to_eval(depsgraph, scene, ob);
}
diff --git a/source/blender/blenkernel/intern/subsurf_ccg.c b/source/blender/blenkernel/intern/subsurf_ccg.c
index 61ed4233474..91deeda8381 100644
--- a/source/blender/blenkernel/intern/subsurf_ccg.c
+++ b/source/blender/blenkernel/intern/subsurf_ccg.c
@@ -1469,7 +1469,7 @@ static void ccgdm_create_grids(DerivedMesh *dm)
DMFlagMat *gridFlagMats;
CCGFace **gridFaces;
int *gridOffset;
- int index, numFaces, numGrids, S, gIndex /*, gridSize*/;
+ int index, numFaces, numGrids, S, gIndex /*, gridSize */;
if (ccgdm->gridData) {
return;
diff --git a/source/blender/blenlib/BLI_cpp_type.hh b/source/blender/blenlib/BLI_cpp_type.hh
index 8e8175c2265..9453eb89a2e 100644
--- a/source/blender/blenlib/BLI_cpp_type.hh
+++ b/source/blender/blenlib/BLI_cpp_type.hh
@@ -679,9 +679,9 @@ class CPPType : NonCopyable, NonMovable {
* compile-time. This allows the compiler to optimize a function for specific types, while all
* other types can still use a generic fallback function.
*
- * \param Types The types that code should be generated for.
- * \param fn The function object to call. This is expected to have a templated `operator()` and a
- * non-templated `operator()`. The templated version will be called if the current #CPPType
+ * \param Types: The types that code should be generated for.
+ * \param fn: The function object to call. This is expected to have a templated `operator()` and
+ * a non-templated `operator()`. The templated version will be called if the current #CPPType
* matches any of the given types. Otherwise, the non-templated function is called.
*/
template<typename... Types, typename Fn> void to_static_type(const Fn &fn) const
diff --git a/source/blender/blenlib/intern/DLRB_tree.c b/source/blender/blenlib/intern/DLRB_tree.c
index 0965d8ba05e..c672bb1f2ce 100644
--- a/source/blender/blenlib/intern/DLRB_tree.c
+++ b/source/blender/blenlib/intern/DLRB_tree.c
@@ -578,7 +578,7 @@ DLRBT_Node *BLI_dlrbTree_add(DLRBT_Tree *tree,
}
default: /* update the duplicate node as appropriate */
{
- /* Return the updated node after calling the callback. */
+ /* Return the updated node after calling the callback. */
node = parNode;
if (update_cb) {
update_cb(node, data);
diff --git a/source/blender/blenlib/intern/length_parameterize.cc b/source/blender/blenlib/intern/length_parameterize.cc
index 4947740ba8c..d6862b96944 100644
--- a/source/blender/blenlib/intern/length_parameterize.cc
+++ b/source/blender/blenlib/intern/length_parameterize.cc
@@ -58,7 +58,7 @@ void create_uniform_samples(const Span<float> lengths,
}
/* Add the samples on the last cyclic segment if necessary, and also the samples
- * that weren't created in the previous loop due to floating point inacuracy. */
+ * that weren't created in the previous loop due to floating point inaccuracy. */
if (cyclic && lengths.size() > 1) {
indices.drop_front(i_dst).fill(points_num - 1);
const float segment_length = lengths.last() - lengths.last(1);
diff --git a/source/blender/compositor/operations/COM_ViewerOperation.cc b/source/blender/compositor/operations/COM_ViewerOperation.cc
index bc7e08ee98a..58392b8a638 100644
--- a/source/blender/compositor/operations/COM_ViewerOperation.cc
+++ b/source/blender/compositor/operations/COM_ViewerOperation.cc
@@ -202,7 +202,7 @@ void ViewerOperation::update_image(const rcti *rect)
rect->ymax);
/* This could be improved to use partial updates. For now disabled as the full frame compositor
- * would not use partial frames anymore and the image engine requires more testing.*/
+ * would not use partial frames anymore and the image engine requires more testing. */
BKE_image_partial_update_mark_full_update(image_);
this->update_draw();
}
diff --git a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
index 19022d534b2..91170abed0b 100644
--- a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
+++ b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
@@ -886,7 +886,7 @@ ID *deg_update_copy_on_write_datablock(const Depsgraph *depsgraph, const IDNode
return id_cow;
}
/* In case we don't need to do a copy-on-write, we can use the update cache of the grease
- * pencil data to do an update-on-write.*/
+ * pencil data to do an update-on-write. */
if (id_type == ID_GD && BKE_gpencil_can_avoid_full_copy_on_write(
(const ::Depsgraph *)depsgraph, (bGPdata *)id_orig)) {
BKE_gpencil_update_on_write((bGPdata *)id_orig, (bGPdata *)id_cow);
diff --git a/source/blender/draw/engines/image/image_drawing_mode.hh b/source/blender/draw/engines/image/image_drawing_mode.hh
index f43bbadfa91..14529797405 100644
--- a/
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list