[Bf-blender-cvs] [5f1adfc508c] master: Cleanup: fix various typos

Brecht Van Lommel noreply at git.blender.org
Tue Apr 5 22:26:22 CEST 2022


Commit: 5f1adfc508cfa117aeead20462f82233d36dca6f
Author: Brecht Van Lommel
Date:   Tue Apr 5 22:21:13 2022 +0200
Branches: master
https://developer.blender.org/rB5f1adfc508cfa117aeead20462f82233d36dca6f

Cleanup: fix various typos

Contributed by luzpaz.

Differential Revision: https://developer.blender.org/D14443

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

M	release/scripts/modules/bpy/utils/__init__.py
M	source/blender/blenlib/intern/array_store.c
M	source/blender/freestyle/intern/stroke/StrokeTesselator.h
M	source/blender/freestyle/intern/view_map/ViewMapTesselator.h
M	source/blender/nodes/geometry/nodes/node_geo_convex_hull.cc
M	source/creator/creator_args.c

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

diff --git a/release/scripts/modules/bpy/utils/__init__.py b/release/scripts/modules/bpy/utils/__init__.py
index bbfb8305e76..5cd2bd2f076 100644
--- a/release/scripts/modules/bpy/utils/__init__.py
+++ b/release/scripts/modules/bpy/utils/__init__.py
@@ -489,7 +489,7 @@ def is_path_builtin(path):
     :type path: str
     :rtype: bool
     """
-    # Note that this function is is not optimized for speed,
+    # Note that this function isn't optimized for speed,
     # it's intended to be used to check if it's OK to remove presets.
     #
     # If this is used in a draw-loop for example, we could cache some of the values.
diff --git a/source/blender/blenlib/intern/array_store.c b/source/blender/blenlib/intern/array_store.c
index 3ea004c2721..9a8bda48c8d 100644
--- a/source/blender/blenlib/intern/array_store.c
+++ b/source/blender/blenlib/intern/array_store.c
@@ -40,7 +40,7 @@
  *  |       |  Each state is a chunk_list user,
  *  |       |  avoids duplicating lists when there is no change between states.
  *  |       |
- *  |       +- chunk_refs (List of BChunkRef): Each chunk_ref links to a a BChunk.
+ *  |       +- chunk_refs (List of BChunkRef): Each chunk_ref links to a BChunk.
  *  |          Each reference is a chunk user,
  *  |          avoids duplicating smaller chunks of memory found in multiple states.
  *  |
diff --git a/source/blender/freestyle/intern/stroke/StrokeTesselator.h b/source/blender/freestyle/intern/stroke/StrokeTesselator.h
index 3e4184bf6cf..d2dde68e77e 100644
--- a/source/blender/freestyle/intern/stroke/StrokeTesselator.h
+++ b/source/blender/freestyle/intern/stroke/StrokeTesselator.h
@@ -32,7 +32,7 @@ class StrokeTesselator {
   /** Builds a line rep contained from a Stroke */
   LineRep *Tesselate(Stroke *iStroke);
 
-  /** Builds a set of lines rep contained under a a NodeShape, itself contained under a NodeGroup
+  /** Builds a set of lines rep contained under a NodeShape, itself contained under a NodeGroup
    *  from a set of strokes.
    */
   template<class StrokeIterator> NodeGroup *Tesselate(StrokeIterator begin, StrokeIterator end);
diff --git a/source/blender/freestyle/intern/view_map/ViewMapTesselator.h b/source/blender/freestyle/intern/view_map/ViewMapTesselator.h
index 9a40ebe7cd7..2da95d47912 100644
--- a/source/blender/freestyle/intern/view_map/ViewMapTesselator.h
+++ b/source/blender/freestyle/intern/view_map/ViewMapTesselator.h
@@ -42,11 +42,11 @@ class ViewMapTesselator {
   {
   }
 
-  /** Builds a set of lines rep contained under a a NodeShape, itself contained under a NodeGroup
+  /** Builds a set of lines rep contained under a NodeShape, itself contained under a NodeGroup
    * from a ViewMap */
   NodeGroup *Tesselate(ViewMap *iViewMap);
 
-  /** Builds a set of lines rep contained under a a NodeShape, itself contained under a NodeGroup
+  /** Builds a set of lines rep contained under a NodeShape, itself contained under a NodeGroup
    * from a set of view edges
    */
   template<class ViewEdgesIterator>
diff --git a/source/blender/nodes/geometry/nodes/node_geo_convex_hull.cc b/source/blender/nodes/geometry/nodes/node_geo_convex_hull.cc
index 4792fada98b..87f000897ed 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_convex_hull.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_convex_hull.cc
@@ -245,7 +245,7 @@ static void read_curve_positions(const Curves &curves_id,
   r_coords->reserve(r_coords->size() + total_size * transforms.size());
   r_coords->as_mutable_span().take_back(total_size).copy_from(curves.evaluated_positions());
   for (const float3 &position : curves.evaluated_positions()) {
-    r_coords->append(transform * postition);
+    r_coords->append(transform * position);
   }
 }
 
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index e1f5bb6377d..05b7f1bcb85 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -1644,7 +1644,7 @@ static int arg_handle_scene_set(int argc, const char **argv, void *data)
       CTX_data_scene_set(C, scene);
 
       /* Set the scene of the first window, see: T55991,
-       * otherwise scrips that run later won't get this scene back from the context. */
+       * otherwise scripts that run later won't get this scene back from the context. */
       wmWindow *win = CTX_wm_window(C);
       if (win == NULL) {
         win = CTX_wm_manager(C)->windows.first;



More information about the Bf-blender-cvs mailing list