[Bf-blender-cvs] [55bffa82da3] master: Cleanup: clang-format, spelling

Campbell Barton noreply at git.blender.org
Thu Jun 24 07:54:08 CEST 2021


Commit: 55bffa82da30a186bd952d0c140829374c2992e4
Author: Campbell Barton
Date:   Thu Jun 24 15:40:16 2021 +1000
Branches: master
https://developer.blender.org/rB55bffa82da30a186bd952d0c140829374c2992e4

Cleanup: clang-format, spelling

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

M	intern/ghost/intern/GHOST_SystemWin32.cpp
M	source/blender/blenloader/BLO_readfile.h
M	source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c

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

diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index a70e5b91674..2eecea2ef5d 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -1893,7 +1893,7 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
         case WM_DISPLAYCHANGE: {
           GHOST_Wintab *wt = window->getWintab();
           if (wt) {
-              wt->remapCoordinates();
+            wt->remapCoordinates();
           }
           break;
         }
diff --git a/source/blender/blenloader/BLO_readfile.h b/source/blender/blenloader/BLO_readfile.h
index 307c09f8ff5..c2ac2df1f84 100644
--- a/source/blender/blenloader/BLO_readfile.h
+++ b/source/blender/blenloader/BLO_readfile.h
@@ -82,18 +82,18 @@ typedef struct BlendFileData {
 } BlendFileData;
 
 struct BlendFileReadParams {
-  uint skip_flags : 3; /* eBLOReadSkip */
+  uint skip_flags : 3; /* #eBLOReadSkip */
   uint is_startup : 1;
 
   /** Whether we are reading the memfile for an undo or a redo. */
-  int undo_direction; /* eUndoStepDir */
+  int undo_direction; /* #eUndoStepDir */
 };
 
 typedef struct BlendFileReadReport {
   /* General reports handling. */
   struct ReportList *reports;
 
-  /* Timing informations .*/
+  /* Timing information. */
   struct {
     double whole;
     double libraries;
@@ -102,7 +102,7 @@ typedef struct BlendFileReadReport {
     double lib_overrides_recursive_resync;
   } duration;
 
-  /* Count informations. */
+  /* Count information. */
   struct {
     /* Some numbers of IDs that ended up in a specific state, or required some specific process
      * during this file read. */
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
index 0b5003e5f2d..dffa6fce395 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
@@ -1921,7 +1921,7 @@ static bool lineart_geometry_check_visible(double (*model_view_proj)[4], Object
   }
 
   bool cond[6] = {true, true, true, true, true, true};
-  /* Beause for a point to be inside clip space, it must satisfy -Wc <= XYCc <= Wc, here if all
+  /* Because for a point to be inside clip space, it must satisfy `-Wc <= XYCc <= Wc`, here if all
    * verts falls to the same side of the clip space border, we know it's outside view. */
   for (int i = 0; i < 8; i++) {
     cond[0] &= (co[i][0] < -co[i][3]);



More information about the Bf-blender-cvs mailing list