[Bf-blender-cvs] [b866100c1f6] master: Cleanup: spelling

Campbell Barton noreply at git.blender.org
Thu Oct 29 11:46:34 CET 2020


Commit: b866100c1f63f8cc62c7674d20a417b7a42812cf
Author: Campbell Barton
Date:   Thu Oct 29 21:38:40 2020 +1100
Branches: master
https://developer.blender.org/rBb866100c1f63f8cc62c7674d20a417b7a42812cf

Cleanup: spelling

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

M	source/blender/blenloader/intern/versioning_290.c
M	source/blender/editors/gpencil/gpencil_trace_ops.c
M	source/blender/editors/interface/interface.c

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

diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c
index c3b85a011db..37987b2c31d 100644
--- a/source/blender/blenloader/intern/versioning_290.c
+++ b/source/blender/blenloader/intern/versioning_290.c
@@ -947,7 +947,7 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
           new_refine_camera_intrinsics |= REFINE_PRINCIPAL_POINT;
         }
 
-        /* The end goal is to enable radial distorion refinement if either K1 or K2 were set for
+        /* The end goal is to enable radial distortion refinement if either K1 or K2 were set for
          * refinement. It is enough to only check for L1 it was not possible to refine K2 without
          * K1. */
         if (settings->refine_camera_intrinsics & LEGACY_REFINE_RADIAL_DISTORTION_K1) {
diff --git a/source/blender/editors/gpencil/gpencil_trace_ops.c b/source/blender/editors/gpencil/gpencil_trace_ops.c
index b68acd091c2..2d04c31e60d 100644
--- a/source/blender/editors/gpencil/gpencil_trace_ops.c
+++ b/source/blender/editors/gpencil/gpencil_trace_ops.c
@@ -102,8 +102,8 @@ typedef struct TraceJob {
 
 /**
  * Trace a image.
- * \param ibuf: Image Ibuffer
- * \param gpf: Destination frame
+ * \param ibuf: Image buffer.
+ * \param gpf: Destination frame.
  */
 static bool gpencil_trace_image(TraceJob *trace_job, ImBuf *ibuf, bGPDframe *gpf)
 {
@@ -281,7 +281,7 @@ static void trace_end_job(void *customdata)
 {
   TraceJob *trace_job = customdata;
 
-  /* If canceled, delete all previously created object and datablock. */
+  /* If canceled, delete all previously created object and data-block. */
   if ((trace_job->was_canceled) && (trace_job->was_ob_created) && (trace_job->ob_gpencil)) {
     bGPdata *gpd = trace_job->ob_gpencil->data;
     BKE_id_delete(trace_job->bmain, &trace_job->ob_gpencil->id);
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 659ebfa4a39..db3bbc8a128 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -928,9 +928,11 @@ static bool ui_but_update_from_old_block(const bContext *C,
   return found_active;
 }
 
-/* needed for temporarily rename buttons, such as in outliner or file-select,
- * they should keep calling uiDefButs to keep them alive */
-/* returns 0 when button removed */
+/**
+ * Needed for temporarily rename buttons, such as in outliner or file-select,
+ * they should keep calling #uiDefBut to keep them alive.
+ * \return false when button removed.
+ */
 bool UI_but_active_only_ex(
     const bContext *C, ARegion *region, uiBlock *block, uiBut *but, const bool remove_on_failure)
 {



More information about the Bf-blender-cvs mailing list