[Bf-blender-cvs] [20a6255d49a] master: Cleanup: spelling

Campbell Barton noreply at git.blender.org
Wed Feb 17 05:06:59 CET 2021


Commit: 20a6255d49aaa1ca0ad72e75be064b2c1a56353f
Author: Campbell Barton
Date:   Wed Feb 17 15:04:29 2021 +1100
Branches: master
https://developer.blender.org/rB20a6255d49aaa1ca0ad72e75be064b2c1a56353f

Cleanup: spelling

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

M	intern/cycles/kernel/svm/svm_noise.h
M	intern/ghost/intern/GHOST_ImeWin32.h
M	intern/ghost/intern/GHOST_WindowWin32.h
M	source/blender/blenfont/intern/blf_dir.c
M	source/blender/blenlib/intern/uvproject.c
M	source/blender/bmesh/intern/bmesh_marking.c
M	source/blender/draw/engines/eevee/eevee_depth_of_field.c
M	source/blender/draw/engines/eevee/eevee_renderpasses.c
M	source/blender/editors/animation/keyframes_edit.c
M	source/blender/editors/armature/pose_select.c
M	source/blender/editors/mesh/editmesh_loopcut.c
M	source/blender/editors/space_node/node_draw.cc
M	source/blender/editors/space_outliner/outliner_dragdrop.c
M	source/blender/editors/transform/transform_convert_armature.c
M	source/blender/editors/transform/transform_gizmo_extrude_3d.c
M	source/blender/gpu/intern/gpu_matrix.cc
M	source/blender/gpu/intern/gpu_shader_interface.hh
M	source/blender/gpu/opengl/gl_texture.cc
M	source/blender/makesdna/DNA_color_types.h

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

diff --git a/intern/cycles/kernel/svm/svm_noise.h b/intern/cycles/kernel/svm/svm_noise.h
index 7ad61f23cc1..94d8bfde555 100644
--- a/intern/cycles/kernel/svm/svm_noise.h
+++ b/intern/cycles/kernel/svm/svm_noise.h
@@ -616,7 +616,7 @@ ccl_device_noinline float perlin_3d(float x, float y, float z)
  *    Point  Offset from v0
  *     v0     (0, 0, 0, 0)
  *     v1     (0, 0, 1, 0)  The full AVX type is computed by inserting the following
- *     v2     (0, 1, 0, 0)  sse types into both the low and high parts of the AVX.
+ *     v2     (0, 1, 0, 0)  SSE types into both the low and high parts of the AVX.
  *     v3     (0, 1, 1, 0)
  *     v4     (1, 0, 0, 0)
  *     v5     (1, 0, 1, 0)  (0, 1, 0, 1) = shuffle<0, 2, 0, 2>(shuffle<2, 2, 2, 2>(V, V + 1))
diff --git a/intern/ghost/intern/GHOST_ImeWin32.h b/intern/ghost/intern/GHOST_ImeWin32.h
index cbef0f0edc4..cd13ee1a8ae 100644
--- a/intern/ghost/intern/GHOST_ImeWin32.h
+++ b/intern/ghost/intern/GHOST_ImeWin32.h
@@ -365,7 +365,7 @@ class GHOST_ImeWin32 {
    *     MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED);
    *   * "ja-JP" (0x0411)
    *     MAKELANGID(LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN), etc.
-   *   (See <winnt.h> for other available values.)
+   *   (See `winnt.h` for other available values.)
    * This Language ID is used for processing language-specific operations in
    * IME functions.
    */
diff --git a/intern/ghost/intern/GHOST_WindowWin32.h b/intern/ghost/intern/GHOST_WindowWin32.h
index 71c97091189..d2d251fa2f2 100644
--- a/intern/ghost/intern/GHOST_WindowWin32.h
+++ b/intern/ghost/intern/GHOST_WindowWin32.h
@@ -570,7 +570,7 @@ class GHOST_WindowWin32 : public GHOST_Window {
     GHOST_WIN32_WTEnable enable;
     GHOST_WIN32_WTOverlap overlap;
 
-    /** Stores the Tablet context if detected Tablet features using WinTab.dll */
+    /** Stores the Tablet context if detected Tablet features using `WinTab.dll` */
     HCTX tablet;
     LONG maxPressure;
     LONG maxAzimuth, maxAltitude;
diff --git a/source/blender/blenfont/intern/blf_dir.c b/source/blender/blenfont/intern/blf_dir.c
index 4fa915826b3..9520e971148 100644
--- a/source/blender/blenfont/intern/blf_dir.c
+++ b/source/blender/blenfont/intern/blf_dir.c
@@ -151,8 +151,9 @@ char *blf_dir_search(const char *file)
   return s;
 }
 
-/* Some font have additional file with metrics information,
- * in general, the extension of the file is: .afm or .pfm
+/**
+ * Some font have additional file with metrics information,
+ * in general, the extension of the file is: `.afm` or `.pfm`
  */
 char *blf_dir_metrics_search(const char *filename)
 {
diff --git a/source/blender/blenlib/intern/uvproject.c b/source/blender/blenlib/intern/uvproject.c
index 00fef29587c..329c4d48fe8 100644
--- a/source/blender/blenlib/intern/uvproject.c
+++ b/source/blender/blenlib/intern/uvproject.c
@@ -132,8 +132,8 @@ void BLI_uvproject_from_view(float target[2],
   target[1] = (y + target[1]) / winy;
 }
 
-/* 'rotmat' can be obedit->obmat when uv project is used.
- * 'winx' and 'winy' can be from scene->r.xsch/ysch */
+/* 'rotmat' can be `obedit->obmat` when uv project is used.
+ * 'winx' and 'winy' can be from `scene->r.xsch/ysch` */
 ProjCameraInfo *BLI_uvproject_camera_info(Object *ob, float (*rotmat)[4], float winx, float winy)
 {
   ProjCameraInfo uci;
diff --git a/source/blender/bmesh/intern/bmesh_marking.c b/source/blender/bmesh/intern/bmesh_marking.c
index 4fe6e6aee58..9cd1a2fd4ec 100644
--- a/source/blender/bmesh/intern/bmesh_marking.c
+++ b/source/blender/bmesh/intern/bmesh_marking.c
@@ -888,7 +888,7 @@ void BM_editselection_plane(BMEditSelection *ese, float r_plane[3])
       sub_v3_v3v3(r_plane, vec, eve->co);
     }
     else {
-      /* make a fake plane that's at rightangles to the normal
+      /* make a fake plane that's at right-angles to the normal
        * we can't make a crossvec from a vec that's the same as the vec
        * unlikely but possible, so make sure if the normal is (0, 0, 1)
        * that vec isn't the same or in the same direction even. */
diff --git a/source/blender/draw/engines/eevee/eevee_depth_of_field.c b/source/blender/draw/engines/eevee/eevee_depth_of_field.c
index 91214f6c437..33d45d61d42 100644
--- a/source/blender/draw/engines/eevee/eevee_depth_of_field.c
+++ b/source/blender/draw/engines/eevee/eevee_depth_of_field.c
@@ -274,7 +274,7 @@ int EEVEE_depth_of_field_init(EEVEE_ViewLayerData *UNUSED(sldata),
         float user_overblur = scene_eval->eevee.bokeh_overblur / 100.0f;
 
         effects->dof_coc_params[1] *= minimal_overblur + user_overblur;
-        /* Avoid dilating the shape. Overblur only soften. */
+        /* Avoid dilating the shape. Over-blur only soften. */
         effects->dof_jitter_radius -= effects->dof_coc_params[1];
       }
     }
@@ -536,7 +536,7 @@ static void dof_dilate_tiles_pass_draw(EEVEE_FramebufferList *fbl,
 }
 
 /**
- * Create mipmaped color & COC textures for gather passes.
+ * Create mipmapped color & COC textures for gather passes.
  **/
 static void dof_reduce_pass_init(EEVEE_FramebufferList *fbl,
                                  EEVEE_PassList *psl,
@@ -820,7 +820,7 @@ static void dof_filter_pass_init(EEVEE_FramebufferList *fbl,
 }
 
 /**
- * Do the Scatter convolution. A sprite is emited for every 4 pixels but is only expanded if the
+ * Do the Scatter convolution. A sprite is emitted for every 4 pixels but is only expanded if the
  * pixels are bright enough to be scattered.
  **/
 static void dof_scatter_pass_init(EEVEE_FramebufferList *fbl,
@@ -1028,11 +1028,11 @@ void EEVEE_depth_of_field_draw(EEVEE_Data *vedata)
     }
 
     {
-      /* Holefill convolution. */
+      /* Hole-fill convolution. */
       GPU_framebuffer_bind(fbl->dof_gather_fg_holefill_fb);
       DRW_draw_pass(psl->dof_gather_fg_holefill);
 
-      /* NOTE: do not filter the holefill pass as we use it as out filter input buffer. */
+      /* NOTE: do not filter the hole-fill pass as we use it as out filter input buffer. */
     }
 
     GPU_framebuffer_bind(fx->target_buffer);
diff --git a/source/blender/draw/engines/eevee/eevee_renderpasses.c b/source/blender/draw/engines/eevee/eevee_renderpasses.c
index 9dec551e4b9..1ed0ecf5cd4 100644
--- a/source/blender/draw/engines/eevee/eevee_renderpasses.c
+++ b/source/blender/draw/engines/eevee/eevee_renderpasses.c
@@ -442,7 +442,7 @@ void EEVEE_renderpasses_draw(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata)
   EEVEE_EffectsInfo *effects = stl->effects;
   DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get();
 
-  /* We can only draw a single renderpass. Lightpasses also select their color pass
+  /* We can only draw a single render-pass. Light-passes also select their color pass
    * (a second pass). We mask the light pass when a light pass is selected. */
   const eViewLayerEEVEEPassType render_pass =
       ((stl->g_data->render_passes & EEVEE_RENDERPASSES_LIGHT_PASS) != 0) ?
diff --git a/source/blender/editors/animation/keyframes_edit.c b/source/blender/editors/animation/keyframes_edit.c
index d5260cac0c9..636f0d3cbea 100644
--- a/source/blender/editors/animation/keyframes_edit.c
+++ b/source/blender/editors/animation/keyframes_edit.c
@@ -86,7 +86,7 @@ short ANIM_fcurve_keyframes_loop(KeyframeEditData *ked,
     return 0;
   }
 
-  /* set the F-Curve into the editdata so that it can be accessed */
+  /* Set the F-Curve into the edit-data so that it can be accessed. */
   if (ked) {
     ked->fcu = fcu;
     ked->curIndex = 0;
diff --git a/source/blender/editors/armature/pose_select.c b/source/blender/editors/armature/pose_select.c
index 6a03207b3b0..a3f97000509 100644
--- a/source/blender/editors/armature/pose_select.c
+++ b/source/blender/editors/armature/pose_select.c
@@ -138,8 +138,10 @@ void ED_pose_bone_select(Object *ob, bPoseChannel *pchan, bool select)
   }
 }
 
-/* called from editview.c, for mode-less pose selection */
-/* assumes scene obact and basact is still on old situation */
+/**
+ * Called for mode-less pose selection.
+ * assumes the active object is still on old situation.
+ */
 bool ED_armature_pose_select_pick_with_buffer(ViewLayer *view_layer,
                                               View3D *v3d,
                                               Base *base,
diff --git a/source/blender/editors/mesh/editmesh_loopcut.c b/source/blender/editors/mesh/editmesh_loopcut.c
index 373d82883d1..2057738221b 100644
--- a/source/blender/editors/mesh/editmesh_loopcut.c
+++ b/source/blender/editors/mesh/editmesh_loopcut.c
@@ -189,8 +189,8 @@ static void ringsel_finish(bContext *C, wmOperator *op)
       const int seltype = is_edge_wire ? SUBDIV_SELECT_INNER :
                                          is_single ? SUBDIV_SELECT_NONE : SUBDIV_SELECT_LOOPCUT;
 
-      /* Enable gridfill, so that intersecting loopcut works as one would expect.
-       * Note though that it will break edgeslide in this specific case.
+      /* Enable grid-fill, so that intersecting loop-cut works as one would expect.
+       * Note though that it will break edge-slide in this specific case.
        * See T31939. */
       BM_mesh_esubdivide(em->bm,
                          BM_ELEM_SELECT,
diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc
index f85d29f99d5..aaceadcc011 100644
--- a/source/blender/editors/space_node/node_draw.cc
+++ b/source/blender/editors/space_node/node_draw.cc
@@ -477,7 +477,7 @@ static void node_update_basis(const bContext *C, bNodeTree *ntree, bNode *node)
   if (node->typeinfo->draw_buttons && (node->flag & NODE_OPTIONS)) {
     dy -= NODE_DYS / 2;
 
-    /* set this for uifunc() that don't use layout engine yet */
+    /* Set this for `uifunc()` that don't use layout engine yet. */
     node->butr.xmin = 0;
     node->butr.xmax = NODE_WIDTH(node) - 2 * NODE_DYS;
     node->butr.ymin = 0;
@@ -2029,8 +2029,8 @@ void node_draw_space(const bContext *C, ARegion *region)
   GPU_depth_test(GPU_DEPTH_NONE);
   GPU_scissor_test(true);
 
-  /* XXX snode->runtime->cursor set in coordspace for placing new nodes, used for drawing noodles
-   * too */
+  /* XXX `snode->runtime->cursor` set in coordinate-space for placing new nodes,
+   * used for drawing noodles too. */
   UI_vi

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list