[Bf-extensions-cvs] [df34f4f1] master: Cleanup: fix source comment typos

Brecht Van Lommel noreply at git.blender.org
Tue Mar 15 18:34:43 CET 2022


Commit: df34f4f1db405c5b8deeb03db0937bee9ba81f42
Author: Brecht Van Lommel
Date:   Tue Mar 15 18:29:39 2022 +0100
Branches: master
https://developer.blender.org/rBAdf34f4f1db405c5b8deeb03db0937bee9ba81f42

Cleanup: fix source comment typos

Contributed by luzpaz.

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

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

M	add_mesh_extra_objects/Blocks.py
M	add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py
M	ant_landscape/eroder.py
M	curve_tools/show_resolution.py
M	greasepencil_tools/import_brush_pack.py
M	greasepencil_tools/rotate_canvas.py
M	greasepencil_tools/timeline_scrub.py
M	io_coat3D/__init__.py
M	io_scene_fbx/export_fbx_bin.py
M	io_scene_fbx/import_fbx.py
M	io_scene_x3d/import_x3d.py
M	materials_library_vx/__init__.py
M	mesh_tissue/polyhedra.py
M	mesh_tissue/tessellate_numpy.py
M	mesh_tissue/utils.py
M	mesh_tissue/weight_tools.py
M	precision_drawing_tools/pdt_command_functions.py
M	precision_drawing_tools/pdt_design.py
M	render_povray/object_primitives.py

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

diff --git a/add_mesh_extra_objects/Blocks.py b/add_mesh_extra_objects/Blocks.py
index 928ed1d6..22676670 100644
--- a/add_mesh_extra_objects/Blocks.py
+++ b/add_mesh_extra_objects/Blocks.py
@@ -1246,7 +1246,7 @@ def plan(Thesketch, oldrows=0):
         # rows = [list of row objects]
         rows = []
 
-        # splits are places where we NEED a row division, to accomidate openings
+        # splits are places where we NEED a row division, to accommodate openings
         # add a split for the bottom row
         splits = [dims['b'] + settings['hb']]
 
diff --git a/add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py b/add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py
index 8fc92890..b1dd99bd 100644
--- a/add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py
+++ b/add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py
@@ -135,7 +135,7 @@ def randomizeTexture(texture, level=1):
     elif texture.type == 'VORONOI':
         metrics = ['DISTANCE', 'DISTANCE_SQUARED', 'MANHATTAN', 'CHEBYCHEV',
                    'MINKOVSKY_HALF', 'MINKOVSKY_FOUR', 'MINKOVSKY']
-        # Settings for first dispalcement level:
+        # Settings for first displacement level:
         if level == 0:
             tempInt = randint(0, 1)
             texture.distance_metric = metrics[tempInt]
diff --git a/ant_landscape/eroder.py b/ant_landscape/eroder.py
index 1859ab66..558d2edb 100644
--- a/ant_landscape/eroder.py
+++ b/ant_landscape/eroder.py
@@ -154,7 +154,7 @@ class Grid:
         if abs(yscale) > 1e-6 :
             self.zscale = 1.0/yscale
 
-        # keep just the z-values and null any ofsset
+        # keep just the z-values and null any offset
         # we might catch a reshape error that will occur if nx*ny != # of vertices (if we are not dealing with a heightfield but with a mesh with duplicate x,y coords, like an axis aligned cube
         self.center = np.array([c[2] for c in verts],dtype=np.single).reshape(nx,ny)
         self.center = (self.center-np.amin(self.center))*self.zscale
diff --git a/curve_tools/show_resolution.py b/curve_tools/show_resolution.py
index cd63f59f..b2dbda7f 100644
--- a/curve_tools/show_resolution.py
+++ b/curve_tools/show_resolution.py
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 
 
-# LOAD MODUL #
+# LOAD MODULE #
 import bpy
 from bpy import *
 from bpy.props import *
diff --git a/greasepencil_tools/import_brush_pack.py b/greasepencil_tools/import_brush_pack.py
index 296ac957..695ca411 100644
--- a/greasepencil_tools/import_brush_pack.py
+++ b/greasepencil_tools/import_brush_pack.py
@@ -103,7 +103,7 @@ class GP_OT_install_brush_pack(bpy.types.Operator):
                 self.report({'WARNING'}, 'Brushes loaded from temp directory (No download)')
                 return {"FINISHED"}
 
-            self.report({'ERROR'}, f'Check your internet connexion, Impossible to connect to url: {dl_url}')
+            self.report({'ERROR'}, f'Check your internet connection, impossible to connect to url: {dl_url}')
             return {"CANCELLED"}
 
         if file_size is None:
diff --git a/greasepencil_tools/rotate_canvas.py b/greasepencil_tools/rotate_canvas.py
index 6db43234..a733eb2d 100644
--- a/greasepencil_tools/rotate_canvas.py
+++ b/greasepencil_tools/rotate_canvas.py
@@ -251,7 +251,7 @@ class RC_OT_RotateCanvas(bpy.types.Operator):
         self.pos_current = mathutils.Vector((event.mouse_region_x, event.mouse_region_y))
 
         self.initial_pos = self.pos_current# for draw debug, else no need
-        # Calculate inital vector
+        # Calculate initial vector
         self.vector_initial = self.pos_current - self.center
         self.vector_initial.normalize()
 
diff --git a/greasepencil_tools/timeline_scrub.py b/greasepencil_tools/timeline_scrub.py
index eaccab99..6a1913ae 100644
--- a/greasepencil_tools/timeline_scrub.py
+++ b/greasepencil_tools/timeline_scrub.py
@@ -156,7 +156,7 @@ class GPTS_OT_time_scrub(bpy.types.Operator):
 
         if ob:  # condition to allow empty scrubing
             if ob.type != 'GPENCIL' or self.evaluate_gp_obj_key:
-                # Get objet keyframe position
+                # Get object keyframe position
                 anim_data = ob.animation_data
                 action = None
 
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index 35e686cc..9a3d06af 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -1040,7 +1040,7 @@ def blender_3DC_blender(texturelist, file_applink_address):
 
 
 
-                    #tärkee että saadaan oikein käännettyä objekt
+                    #it is important to get the object translated correctly
 
                     objekti.select_set(True)
 
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index 9dad8f01..50aefe03 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -1000,7 +1000,7 @@ def fbx_data_mesh_elements(root, me_obj, scene_data, done_meshes):
         for e in me.edges:
             if e.key not in edges_map:
                 continue  # Only loose edges, in theory!
-            # Blender squares those values before sending them to OpenSubdiv, when other softwares don't,
+            # Blender squares those values before sending them to OpenSubdiv, when other software don't,
             # so we need to compensate that to get similar results through FBX...
             t_ec[edges_map[e.key]] = e.crease * e.crease
 
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index f2726047..bf5641ca 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -1113,7 +1113,7 @@ def blen_read_geom_layer_smooth(fbx_obj, mesh):
         return False
 
     if fbx_layer_mapping == b'ByEdge':
-        # some models have bad edge data, we cant use this info...
+        # some models have bad edge data, we can't use this info...
         if not mesh.edges:
             print("warning skipping sharp edges data, no valid edges...")
             return False
@@ -1162,13 +1162,13 @@ def blen_read_geom_layer_edge_crease(fbx_obj, mesh):
     layer_id = b'EdgeCrease'
     fbx_layer_data = elem_prop_first(elem_find_first(fbx_layer, layer_id))
 
-    # some models have bad edge data, we cant use this info...
+    # some models have bad edge data, we can't use this info...
     if not mesh.edges:
         print("warning skipping edge crease data, no valid edges...")
         return False
 
     if fbx_layer_mapping == b'ByEdge':
-        # some models have bad edge data, we cant use this info...
+        # some models have bad edge data, we can't use this info...
         if not mesh.edges:
             print("warning skipping edge crease data, no valid edges...")
             return False
@@ -1179,7 +1179,7 @@ def blen_read_geom_layer_edge_crease(fbx_obj, mesh):
             fbx_layer_data, None,
             fbx_layer_mapping, fbx_layer_ref,
             1, 1, layer_id,
-            # Blender squares those values before sending them to OpenSubdiv, when other softwares don't,
+            # Blender squares those values before sending them to OpenSubdiv, when other software don't,
             # so we need to compensate that to get similar results through FBX...
             xform=sqrt,
             )
@@ -2666,7 +2666,7 @@ def load(operator, context, filepath="",
     def connection_filter_ex(fbx_uuid, fbx_id, dct):
         return [(c_found[0], c_found[1], c_type)
                 for (c_uuid, c_type) in dct.get(fbx_uuid, ())
-                # 0 is used for the root node, which isnt in fbx_table_nodes
+                # 0 is used for the root node, which isn't in fbx_table_nodes
                 for c_found in (() if c_uuid == 0 else (fbx_table_nodes.get(c_uuid, (None, None)),))
                 if (fbx_id is None) or (c_found[0] and c_found[0].id == fbx_id)]
 
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 834485cb..8299faf1 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -45,7 +45,7 @@ def imageConvertCompat(path):
 # rotation first defines axis then amount in radians
 
 
-# =============================== VRML Spesific
+# =============================== VRML Specific
 
 def vrml_split_fields(value):
     """
diff --git a/materials_library_vx/__init__.py b/materials_library_vx/__init__.py
index 03d4f0cd..c19eab87 100644
--- a/materials_library_vx/__init__.py
+++ b/materials_library_vx/__init__.py
@@ -749,7 +749,7 @@ class MATLIB_MT_CatsMenu(Menu):
 #  def poll(cls, context):
 #    return context.active_object is not None
 #
-#  def exectute(self, context):
+#  def execute(self, context):
 #    print("executing")
 #    return {"FINISHED"}
 
diff --git a/mesh_tissue/polyhedra.py b/mesh_tissue/polyhedra.py
index 394d605a..d58f08aa 100644
--- a/mesh_tissue/polyhedra.py
+++ b/mesh_tissue/polyhedra.py
@@ -174,7 +174,7 @@ class polyhedra_wireframe(Operator):
                 verts1 = [v.index for v in f1.verts]
                 va1 = verts1.index(e.verts[0].index)
                 vb1 = verts1.index(e.verts[1].index)
-                # chech if order of the edge matches the order of the face
+                # check if order of the edge matches the order of the face
                 dir1 = va1 == (vb1+1)%len(verts1)
                 edge_vec1 = edge_vec if dir1 else -edge_vec
 
@@ -190,7 +190,7 @@ class polyhedra_wireframe(Operator):
                     verts2 = [v.index for v in f2.verts]
                     va2 = verts2.index(e.verts[0].index)
                     vb2 = verts2.index(e.verts[1].index)
-                    # chech if order of the edge matches the order of the face
+                    # check if order of the edge matches the order of the face
                     dir2 = va2 == (vb2+1)%len(verts2)
                     # check for normal consistency
                     if dir1 != dir2:
diff --git a/mesh_tissue/tessellate_numpy.py b/mesh_tissue/tessellate_numpy.py
index d3c1fc21..50516b2a 100644
--- a/mesh_tissue/tessellate_numpy.py
+++ b/mesh_tissue/tessellate_numpy.py
@@ -576,7 +576,7 @@ def tessellate_patch(props):
     for mat_id, _ob1 in enumerate(components):
         if _ob1 == None: continue
 
-        # Set original values

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list