[Bf-blender-cvs] [46a2592eef9] master: Cleanup: spelling in comments, typos in tool-tips

Campbell Barton noreply at git.blender.org
Thu Jul 21 05:23:09 CEST 2022


Commit: 46a2592eef90782bea6124767c072f275330bd00
Author: Campbell Barton
Date:   Thu Jul 21 13:21:53 2022 +1000
Branches: master
https://developer.blender.org/rB46a2592eef90782bea6124767c072f275330bd00

Cleanup: spelling in comments, typos in tool-tips

===================================================================

M	intern/cycles/kernel/bvh/util.h
M	intern/cycles/kernel/data_template.h
M	intern/cycles/kernel/types.h
M	source/blender/editors/interface/eyedroppers/eyedropper_driver.c
M	source/blender/editors/sculpt_paint/paint_stroke.c
M	source/blender/gpu/GPU_context.h
M	source/blender/gpu/metal/mtl_memory.mm
M	source/blender/gpu/metal/mtl_query.mm
M	source/blender/gpu/metal/mtl_uniform_buffer.hh
M	source/blender/gpu/metal/mtl_uniform_buffer.mm
M	source/blender/makesrna/intern/rna_sequencer.c

===================================================================

diff --git a/intern/cycles/kernel/bvh/util.h b/intern/cycles/kernel/bvh/util.h
index 1795ae4c790..385e904d20f 100644
--- a/intern/cycles/kernel/bvh/util.h
+++ b/intern/cycles/kernel/bvh/util.h
@@ -11,7 +11,7 @@ CCL_NAMESPACE_BEGIN
  * intersection we'll be comparing against the exact same distances. */
 ccl_device_forceinline float intersection_t_offset(const float t)
 {
-  /* This is a simplified version of nextafterf(t, FLT_MAX), only dealing with
+  /* This is a simplified version of `nextafterf(t, FLT_MAX)`, only dealing with
    * non-negative and finite t. */
   kernel_assert(t >= 0.0f && isfinite_safe(t));
   const uint32_t bits = (t == 0.0f) ? 1 : __float_as_uint(t) + 1;
diff --git a/intern/cycles/kernel/data_template.h b/intern/cycles/kernel/data_template.h
index b06ac62a5d8..807d0650fc3 100644
--- a/intern/cycles/kernel/data_template.h
+++ b/intern/cycles/kernel/data_template.h
@@ -70,7 +70,7 @@ KERNEL_STRUCT_MEMBER(film, float4, rec709_to_r)
 KERNEL_STRUCT_MEMBER(film, float4, rec709_to_g)
 KERNEL_STRUCT_MEMBER(film, float4, rec709_to_b)
 KERNEL_STRUCT_MEMBER(film, int, is_rec709)
-/* Exposuse. */
+/* Exposure. */
 KERNEL_STRUCT_MEMBER(film, float, exposure)
 /* Passed used. */
 KERNEL_STRUCT_MEMBER(film, int, pass_flag)
diff --git a/intern/cycles/kernel/types.h b/intern/cycles/kernel/types.h
index 05320deed19..4f4b811a8e7 100644
--- a/intern/cycles/kernel/types.h
+++ b/intern/cycles/kernel/types.h
@@ -1168,7 +1168,7 @@ typedef struct KernelData {
   uint max_shaders;
   uint volume_stack_size;
 
-  /* Always dynamic data mambers. */
+  /* Always dynamic data members. */
   KernelCamera cam;
   KernelBake bake;
   KernelTables tables;
diff --git a/source/blender/editors/interface/eyedroppers/eyedropper_driver.c b/source/blender/editors/interface/eyedroppers/eyedropper_driver.c
index 14c00c21a5c..a9314df44a5 100644
--- a/source/blender/editors/interface/eyedroppers/eyedropper_driver.c
+++ b/source/blender/editors/interface/eyedroppers/eyedropper_driver.c
@@ -83,14 +83,14 @@ static void driverdropper_sample(bContext *C, wmOperator *op, const wmEvent *eve
   if (but == NULL) {
     return;
   }
-  /* Get paths for src... */
+  /* Get paths for the source. */
   PointerRNA *target_ptr = &but->rnapoin;
   PropertyRNA *target_prop = but->rnaprop;
   const int target_index = but->rnaindex;
 
   char *target_path = RNA_path_from_ID_to_property(target_ptr, target_prop);
 
-  /* ... and destination */
+  /* Get paths for the destination. */
   char *dst_path = RNA_path_from_ID_to_property(&ddr->ptr, ddr->prop);
 
   /* Now create driver(s) */
diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c
index 88e7a786a47..736942b9f72 100644
--- a/source/blender/editors/sculpt_paint/paint_stroke.c
+++ b/source/blender/editors/sculpt_paint/paint_stroke.c
@@ -123,7 +123,7 @@ typedef struct PaintStroke {
   StrokeRedraw redraw;
   StrokeDone done;
 
-  bool original; /* Raycast original mesh at start of stroke */
+  bool original; /* Ray-cast original mesh at start of stroke. */
 } PaintStroke;
 
 /*** Cursors ***/
diff --git a/source/blender/gpu/GPU_context.h b/source/blender/gpu/GPU_context.h
index 9d92ea2cad9..a242bb7cc94 100644
--- a/source/blender/gpu/GPU_context.h
+++ b/source/blender/gpu/GPU_context.h
@@ -17,8 +17,8 @@
 extern "C" {
 #endif
 
-/* GPU backends abstract the differences between different APIs. GPU_context_create
- * automatically initializes the backend, and GPU_context_discard frees it when there
+/* GPU back-ends abstract the differences between different APIs. #GPU_context_create
+ * automatically initializes the back-end, and #GPU_context_discard frees it when there
  * are no more contexts. */
 bool GPU_backend_supported(void);
 eGPUBackendType GPU_backend_get_type(void);
diff --git a/source/blender/gpu/metal/mtl_memory.mm b/source/blender/gpu/metal/mtl_memory.mm
index 48e27dd2bb6..07da489bdbb 100644
--- a/source/blender/gpu/metal/mtl_memory.mm
+++ b/source/blender/gpu/metal/mtl_memory.mm
@@ -68,7 +68,7 @@ gpu::MTLBuffer *MTLBufferPool::allocate_with_data(uint64_t size,
                                                   bool cpu_visible,
                                                   const void *data)
 {
-  /* Allocate buffer with default HW-compatible alignemnt of 256 bytes.
+  /* Allocate buffer with default HW-compatible alignment of 256 bytes.
    * See https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf for more. */
   return this->allocate_aligned_with_data(size, 256, cpu_visible, data);
 }
diff --git a/source/blender/gpu/metal/mtl_query.mm b/source/blender/gpu/metal/mtl_query.mm
index 33ae8f554c3..dfda0a8de7f 100644
--- a/source/blender/gpu/metal/mtl_query.mm
+++ b/source/blender/gpu/metal/mtl_query.mm
@@ -104,8 +104,8 @@ void MTLQueryPool::get_occlusion_result(MutableSpan<uint32_t> r_values)
     BLI_assert(ctx->get_inside_frame());
   }
 
-  /* Wait for GPU operatiosn to complete and for query buffer contents
-   * to be synchronised back to host memory. */
+  /* Wait for GPU operations to complete and for query buffer contents
+   * to be synchronized back to host memory. */
   GPU_finish();
 
   /* Iterate through all possible visibility buffers and copy results into provided
diff --git a/source/blender/gpu/metal/mtl_uniform_buffer.hh b/source/blender/gpu/metal/mtl_uniform_buffer.hh
index 722d819cf96..789a85f0a92 100644
--- a/source/blender/gpu/metal/mtl_uniform_buffer.hh
+++ b/source/blender/gpu/metal/mtl_uniform_buffer.hh
@@ -25,7 +25,7 @@ class MTLUniformBuf : public UniformBuf {
    * have yet been allocated. */
   bool has_data_ = false;
 
-  /* Bindstate tracking. */
+  /* Bind-state tracking. */
   int bind_slot_ = -1;
   MTLContext *bound_ctx_ = nullptr;
 
diff --git a/source/blender/gpu/metal/mtl_uniform_buffer.mm b/source/blender/gpu/metal/mtl_uniform_buffer.mm
index 3415c41f2cc..4893014dedf 100644
--- a/source/blender/gpu/metal/mtl_uniform_buffer.mm
+++ b/source/blender/gpu/metal/mtl_uniform_buffer.mm
@@ -107,7 +107,7 @@ void MTLUniformBuf::bind(int slot)
     MEM_SAFE_FREE(data_);
   }
 
-  /* Ensure there is atleast an empty dummy buffer. */
+  /* Ensure there is at least an empty dummy buffer. */
   if (metal_buffer_ == nullptr) {
     this->update(nullptr);
   }
diff --git a/source/blender/makesrna/intern/rna_sequencer.c b/source/blender/makesrna/intern/rna_sequencer.c
index 04037a64426..3bcd9cd0441 100644
--- a/source/blender/makesrna/intern/rna_sequencer.c
+++ b/source/blender/makesrna/intern/rna_sequencer.c
@@ -1754,12 +1754,12 @@ static void rna_def_color_balance(BlenderRNA *brna)
 
   prop = RNA_def_property(srna, "invert_gain", PROP_BOOLEAN, PROP_NONE);
   RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_COLOR_BALANCE_INVERSE_GAIN);
-  RNA_def_property_ui_text(prop, "Inverse Gain", "Invert the gain color`");
+  RNA_def_property_ui_text(prop, "Inverse Gain", "Invert the gain color");
   RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_SequenceColorBalance_update");
 
   prop = RNA_def_property(srna, "invert_slope", PROP_BOOLEAN, PROP_NONE);
   RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_COLOR_BALANCE_INVERSE_SLOPE);
-  RNA_def_property_ui_text(prop, "Inverse Slope", "Invert the slope color`");
+  RNA_def_property_ui_text(prop, "Inverse Slope", "Invert the slope color");
   RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_SequenceColorBalance_update");
 
   prop = RNA_def_property(srna, "invert_offset", PROP_BOOLEAN, PROP_NONE);



More information about the Bf-blender-cvs mailing list