[Bf-extensions-cvs] [d68dca98] master: Cleanup: fix typos in source code

Brecht Van Lommel noreply at git.blender.org
Wed Jan 5 15:47:13 CET 2022


Commit: d68dca98ce6705dd69285692f3cdc1dbf2213c1d
Author: Brecht Van Lommel
Date:   Wed Jan 5 15:27:33 2022 +0100
Branches: master
https://developer.blender.org/rBAd68dca98ce6705dd69285692f3cdc1dbf2213c1d

Cleanup: fix typos in source code

Contributed by luzpaz.

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

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

M	add_mesh_BoltFactory/createMesh.py
M	add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py
M	add_mesh_extra_objects/add_mesh_rocks/rockgen.py
M	add_mesh_extra_objects/add_mesh_rocks/utils.py
M	amaranth/render/render_output_z.py
M	archimesh/achm_kitchen_maker.py
M	curve_tools/cad.py
M	curve_tools/curves.py
M	curve_tools/remove_doubles.py
M	greasepencil_tools/line_reshape.py
M	greasepencil_tools/prefs.py
M	greasepencil_tools/rotate_canvas.py
M	greasepencil_tools/timeline_scrub.py
M	io_coat3D/__init__.py
M	io_export_paper_model.py
M	io_import_dxf/__init__.py
M	io_import_palette/__init__.py
M	io_import_palette/import_ase.py
M	io_mesh_stl/__init__.py
M	io_mesh_stl/stl_utils.py
M	io_scene_fbx/export_fbx_bin.py
M	io_scene_fbx/import_fbx.py
M	io_scene_gltf2/blender/exp/gltf2_blender_gather_drivers.py
M	io_scene_gltf2/blender/exp/gltf2_blender_gather_texture_info.py
M	io_scene_gltf2/blender/imp/gltf2_blender_KHR_materials_clearcoat.py
M	io_scene_obj/export_obj.py
M	io_scene_obj/import_obj.py
M	magic_uv/op/mirror_uv.py
M	magic_uv/op/select_uv.py
M	materials_library_vx/__init__.py
M	mesh_auto_mirror.py
M	mesh_tissue/tessellate_numpy.py
M	node_wrangler.py
M	power_sequencer/operators/fade_add.py
M	power_sequencer/operators/mouse_trim_modal.py
M	precision_drawing_tools/__init__.py
M	precision_drawing_tools/pdt_command.py
M	precision_drawing_tools/pdt_command_functions.py
M	precision_drawing_tools/pdt_design.py
M	precision_drawing_tools/pdt_functions.py
M	precision_drawing_tools/pdt_menus.py
M	precision_drawing_tools/pdt_msg_strings.py
M	precision_drawing_tools/pdt_tangent.py
M	render_povray/object_curve_topology.py
M	render_povray/object_gui.py
M	render_povray/object_mesh_topology.py
M	render_povray/render.py
M	render_povray/render_gui.py
M	render_povray/update_files.py
M	rigify/rigs/face/skin_eye.py
M	rigify/rigs/skin/skin_nodes.py
M	space_view3d_stored_views/__init__.py
M	space_view3d_stored_views/stored_views_test.py
M	ui_translate/update_ui.py

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

diff --git a/add_mesh_BoltFactory/createMesh.py b/add_mesh_BoltFactory/createMesh.py
index e19f15ba..5a0e8e59 100644
--- a/add_mesh_BoltFactory/createMesh.py
+++ b/add_mesh_BoltFactory/createMesh.py
@@ -67,7 +67,7 @@ def unpack_face_list(list_of_tuples):
 """
 Remove Doubles takes a list on Verts and a list of Faces and
 removes the doubles, much like Blender does in edit mode.
-It doesn't have the range function  but it will round the corrdinates
+It doesn't have the range function  but it will round the coordinates
 and remove verts that are very close together.  The function
 is useful because you can perform a "Remove Doubles" with out
 having to enter Edit Mode. Having to enter edit mode has the
@@ -292,7 +292,7 @@ def Fill_Fan_Face(OFFSET, NUM, FACE_DOWN=0):
     Face = [NUM-1,0,1]
     TempFace = [0, 0, 0]
     A = 0
-    #B = 1 unsed
+    #B = 1 unused
     C = 2
     if NUM < 3:
         return None
@@ -1193,7 +1193,7 @@ def Create_12_Point(FLAT, HOLE_DIA, SHANK_DIA, HEIGHT,FLANGE_DIA):
     v_5Deg_Line.length *= 2  # extende out the line on a 5 deg angle
 
     #We cross 2 lines. One from the origin to the 0 Deg point
-    #and the second is from the orign extended out past the first line
+    #and the second is from the origin extended out past the first line
     # This gives the cross point of the
     v_Cross = geometry.intersect_line_line_2d(v_0_Deg_Point,v_15Deg_Point,v_origin,v_5Deg_Line)
     dvec = vec2 - Vector([v_Cross.x,v_Cross.y,0.0])
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 d492c4e5..3b1c4565 100644
--- a/add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py
+++ b/add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py
@@ -26,7 +26,7 @@ def randomizeTexture(texture, level=1):
 
     param: texture - bpy.data.texture to modify.
     level   - designated tweaked settings to use
-    -> Below 10 is a displacment texture
+    -> Below 10 is a displacement texture
     -> Between 10 and 20 is a base material texture
     '''
     noises = ['BLENDER_ORIGINAL', 'ORIGINAL_PERLIN', 'IMPROVED_PERLIN',
diff --git a/add_mesh_extra_objects/add_mesh_rocks/rockgen.py b/add_mesh_extra_objects/add_mesh_rocks/rockgen.py
index 7279d904..8e2df338 100644
--- a/add_mesh_extra_objects/add_mesh_rocks/rockgen.py
+++ b/add_mesh_extra_objects/add_mesh_rocks/rockgen.py
@@ -84,7 +84,7 @@
 # Coded in IDLE, tested in Blender 2.59.  NumPy Recommended.
 # Search for "@todo" to quickly find sections that need work.
 #
-# Remeber -
+# Remember -
 #   Functional code comes before fast code.  Once it works, then worry about
 #   making it faster/more efficient.
 #
@@ -793,7 +793,7 @@ def generateRocks(context, scaleX, skewX, scaleY, skewY, scaleZ, skewZ,
     # sigma is the standard deviation of the values.  The 95% interval is three
     # standard deviations, which is what we want most generated values to fall
     # in.  Since it might be skewed we are going to use half the difference
-    # betwee the mean and the furthest bound and scale the other side down
+    # between the mean and the furthest bound and scale the other side down
     # post-number generation.
     if scaleX[0] != scaleX[1]:
         skewX = (skewX + 1) / 2
@@ -900,7 +900,7 @@ def generateRocks(context, scaleX, skewX, scaleY, skewY, scaleZ, skewZ,
             rock.modifiers.new(name="Smooth", type='SMOOTH')
             rock.modifiers[6].factor = gauss(smooth_fac, (smooth_fac ** 0.5) / 12)
             rock.modifiers[6].iterations = smooth_it
-        # Make a call to random to keep things consistant:
+        # Make a call to random to keep things consistent:
         else:
             gauss(0, 1)
 
@@ -1021,7 +1021,7 @@ class OBJECT_OT_add_mesh_rock(bpy.types.Operator):
         min=-1.0, max=1.0, default=defaults[6])
     use_scale_dis: BoolProperty(
         name="Scale displace textures",
-        description="Scale displacement textures with dimensions.  May cause streched textures",
+        description="Scale displacement textures with dimensions.  May cause stretched textures",
         default=defaults[7])
     scale_fac: FloatVectorProperty(
         name="Scaling Factor",
diff --git a/add_mesh_extra_objects/add_mesh_rocks/utils.py b/add_mesh_extra_objects/add_mesh_rocks/utils.py
index 64e2daf4..1da48655 100644
--- a/add_mesh_extra_objects/add_mesh_rocks/utils.py
+++ b/add_mesh_extra_objects/add_mesh_rocks/utils.py
@@ -21,7 +21,7 @@
 # <pep8 compliant>
 
 
-# Converts a formated string to a float tuple:
+# Converts a formatted string to a float tuple:
 #   IN - '(0.5, 0.2)' -> CONVERT -> OUT - (0.5, 0.2)
 def toTuple(stringIn):
     sTemp = str(stringIn)[1:len(str(stringIn)) - 1].split(', ')
@@ -31,7 +31,7 @@ def toTuple(stringIn):
     return tuple(fTemp)
 
 
-# Converts a formated string to a float tuple:
+# Converts a formatted string to a float tuple:
 #   IN - '[0.5, 0.2]' -> CONVERT -> OUT - [0.5, 0.2]
 def toList(stringIn):
     sTemp = str(stringIn)[1:len(str(stringIn)) - 1].split(', ')
@@ -93,7 +93,7 @@ except:
     # from random import weibullvariate as weibull
     print("Rock Generator: Numpy not found.  Using Python's random.")
     numpy = False
-# Artifically skews a normal (gaussian) distribution.  This will not create
+# Artificially skews a normal (gaussian) distribution.  This will not create
 # a continuous distribution curve but instead acts as a piecewise finction.
 # This linearly scales the output on one side to fit the bounds.
 #
diff --git a/amaranth/render/render_output_z.py b/amaranth/render/render_output_z.py
index bbde91ff..2c1107ed 100644
--- a/amaranth/render/render_output_z.py
+++ b/amaranth/render/render_output_z.py
@@ -17,7 +17,7 @@ Display a little warning label when exporting EXR, with Z Buffer enabled, but
 forgot to plug the Z input in the Compositor.
 
 Might be a bit too specific, but found it nice to remember to plug the Z input
-if we explicitely specify for Z Buffers to be saved (because it's disabled by
+if we explicitly specify for Z Buffers to be saved (because it's disabled by
 default).
 
 Find it on the Output panel, Render properties.
diff --git a/archimesh/achm_kitchen_maker.py b/archimesh/achm_kitchen_maker.py
index 28118259..cc1e6ef8 100644
--- a/archimesh/achm_kitchen_maker.py
+++ b/archimesh/achm_kitchen_maker.py
@@ -2542,7 +2542,7 @@ def handle_model_08():
 
 
 # ----------------------------------------------
-# Creaate SKU code for inventory
+# Create SKU code for inventory
 # ----------------------------------------------
 def createunitsku(self, cabinet):
     # ------------------
diff --git a/curve_tools/cad.py b/curve_tools/cad.py
index dd11b4c7..ae96f869 100644
--- a/curve_tools/cad.py
+++ b/curve_tools/cad.py
@@ -37,7 +37,7 @@ class Fillet(bpy.types.Operator):
 
     radius: bpy.props.FloatProperty(name='Radius', description='Radius of the rounded corners', unit='LENGTH', min=0.0, default=0.1)
     chamfer_mode: bpy.props.BoolProperty(name='Chamfer', description='Cut off sharp without rounding', default=False)
-    limit_half_way: bpy.props.BoolProperty(name='Limit Half Way', description='Limits the segements to half their length in order to prevent collisions', default=False)
+    limit_half_way: bpy.props.BoolProperty(name='Limit Half Way', description='Limits the segments to half their length in order to prevent collisions', default=False)
 
     @classmethod
     def poll(cls, context):
diff --git a/curve_tools/curves.py b/curve_tools/curves.py
index 202487de..8a1a1484 100644
--- a/curve_tools/curves.py
+++ b/curve_tools/curves.py
@@ -390,7 +390,7 @@ class BezierSpline:
         self.segments.append(BezierSegment(self.segments[-1].bezierPoint2, spline2.segments[0].bezierPoint1))
         for seg2 in spline2.segments: self.segments.append(seg2)
 
-        self.resolution += spline2.resolution    # extra segment will usually be short -- impact on resolution negligable
+        self.resolution += spline2.resolution    # extra segment will usually be short -- impact on resolution negligible
 
         self.isCyclic = False    # is this ok?
 
diff --git a/curve_tools/remove_doubles.py b/curve_tools/remove_doubles.py
index d69b3e0a..f0b3dbb5 100644
--- a/curve_tools/remove_doubles.py
+++ b/curve_tools/remove_doubles.py
@@ -7,7 +7,7 @@ bl_info = {
     'version': (1, 1),
     'blender': (2, 80, 0),
     'location': 'View3D > Context menu (W/RMB) > Remove Doubles',
-    'description': 'Adds comand "Remove Doubles" for curves',
+    'description': 'Adds command "Remove Doubles" for curves',
     'category': 'Add Curve'
 }
 
diff --git a/greasepencil_tools/line_reshape.py b/greasepencil_tools/line_reshape.py
index b994b8d6..1425bac5 100644
--- a/greasepencil_tools/line_reshape.py
+++ b/greasepencil_tools/line_reshape.py
@@ -43,9 +43,9 @@ def vector_len_from_coord(a, b):
         return (a.co - b.co).length
 
 def point_from_dist_in_segment_3d(a, b, ratio):
-    '''return the tuple coords of a point on 3D segment ab according to given ratio (some distance divided by total segment lenght)'''
+    '''return the tuple coords of a point on 3D segment ab according to given ratio (some distance divided by total segment length)'''
     ## ref:https://math.stackexchange.com/questions/175896/finding-a-point-along-a-line-a-certain-distance-away-from-another-point
-    # ratio = dist / seglenght
+    # ratio = dist / seglength
     return ( ((1 - ratio) * a[0] + (ratio*b[0])), ((1 - ratio) * a[1] + (ratio*b[1])), ((1 - ratio) * a[2] + (ratio*b[2])) )
 
 def get_stroke_length(s):
@@ -144,7 +144,7 @@ class GP_OT_straightStroke(bpy.types.Operator):
             ct = 0
             for l in gpl:
                 if l.lock or l.hide or not l.active_frame:
-                    # avoid locked, hided, empty layers
+                    # avoid locked, hidden, empty layers
                     continue
                 if gp.use_multiedit:
                     target_frames = [f for f in l.frames if f.select]
diff --git a/greasepencil_tools/prefs.py b/greasepencil_tools/prefs.py
index 11d3d0be..f1b335ba 100644
--- a/greasepencil_tools/prefs.py
+++ b/greasepencil_tools/prefs.py
@@ -103,7 +103,7 @@ class GreasePencilAddonPrefs(bpy.t

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list