[Bf-extensions-cvs] [99d2c979] master: Cleanup: fix typos

Brecht Van Lommel noreply at git.blender.org
Fri Oct 14 19:57:19 CEST 2022


Commit: 99d2c979a9bd4b38d618696c83cb02fd6d8083ae
Author: Brecht Van Lommel
Date:   Fri Oct 14 19:52:42 2022 +0200
Branches: master
https://developer.blender.org/rBA99d2c979a9bd4b38d618696c83cb02fd6d8083ae

Cleanup: fix typos

Contributed by luzpaz.

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

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

M	add_mesh_extra_objects/add_mesh_rocks/rockgen.py
M	add_mesh_extra_objects/add_mesh_rocks/utils.py
M	add_mesh_extra_objects/add_mesh_supertoroid.py
M	ant_landscape/ant_functions.py
M	io_anim_bvh/import_bvh.py
M	io_coat3D/tex.py
M	io_coat3D/texVR.py
M	io_curve_svg/import_svg.py
M	io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py
M	io_scene_x3d/export_x3d.py
M	magic_uv/op/texture_projection.py
M	magic_uv/op/texture_wrap.py
M	materials_utils/functions.py
M	materials_utils/operators.py
M	measureit/__init__.py
M	measureit/measureit_main.py
M	mesh_bsurfaces.py
M	mesh_inset/geom.py
M	mesh_looptools.py
M	mesh_snap_utilities_line/__init__.py
M	mesh_tools/mesh_offset_edges.py
M	node_wrangler.py
M	precision_drawing_tools/pdt_functions.py
M	precision_drawing_tools/pdt_msg_strings.py
M	render_povray/model_meta_topology.py
M	render_povray/nodes.py

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

diff --git a/add_mesh_extra_objects/add_mesh_rocks/rockgen.py b/add_mesh_extra_objects/add_mesh_rocks/rockgen.py
index d0138787..8269e126 100644
--- a/add_mesh_extra_objects/add_mesh_rocks/rockgen.py
+++ b/add_mesh_extra_objects/add_mesh_rocks/rockgen.py
@@ -809,7 +809,7 @@ def generateRocks(context, scaleX, skewX, scaleY, skewY, scaleZ, skewZ,
     rocks = []
 
     for i in range(numOfRocks):
-        # todo: enable different random values for each (x,y,z) corrdinate for
+        # todo: enable different random values for each (x,y,z) coordinate for
         # each vertex.  This will add additional randomness to the shape of the
         # generated rocks.
         #   *** todo completed 4/19/2011 ***
diff --git a/add_mesh_extra_objects/add_mesh_rocks/utils.py b/add_mesh_extra_objects/add_mesh_rocks/utils.py
index d41e87c5..46149ceb 100644
--- a/add_mesh_extra_objects/add_mesh_rocks/utils.py
+++ b/add_mesh_extra_objects/add_mesh_rocks/utils.py
@@ -76,7 +76,7 @@ except:
 # a continuous distribution curve but instead acts as a piecewise finction.
 # This linearly scales the output on one side to fit the bounds.
 #
-# Example output historgrams:
+# Example output histograms:
 #
 # Upper skewed:                 Lower skewed:
 #  |                 ▄           |      _
@@ -92,7 +92,7 @@ except:
 #  | _▄_ ▄███████████████▄_      | _▄███████████████▄▄_
 #   -------------------------     -----------------------
 #                    |mu               |mu
-#   Historgrams were generated in R (http://www.r-project.org/) based on the
+#   Histograms were generated in R (http://www.r-project.org/) based on the
 #   calculations below and manually duplicated here.
 #
 # param:  mu          - mu is the mean of the distribution.
diff --git a/add_mesh_extra_objects/add_mesh_supertoroid.py b/add_mesh_extra_objects/add_mesh_supertoroid.py
index e325cffc..68fdeb4d 100644
--- a/add_mesh_extra_objects/add_mesh_supertoroid.py
+++ b/add_mesh_extra_objects/add_mesh_supertoroid.py
@@ -99,7 +99,7 @@ def supertoroid(R, r, u, v, n1, n2):
     # x = (cos(theta) ** n1)*(R + r * (cos(phi) ** n2))
     # y = (sin(theta) ** n1)*(R + r * (cos(phi) ** n2))
     # z = (r * sin(phi) ** n2)
-    # with theta and phi rangeing from 0 to 2pi
+    # with theta and phi ranging from 0 to 2pi
 
     for i in range(u):
         s = power(sin(i * a), n1)
diff --git a/ant_landscape/ant_functions.py b/ant_landscape/ant_functions.py
index 1337533c..f50cb41a 100644
--- a/ant_landscape/ant_functions.py
+++ b/ant_landscape/ant_functions.py
@@ -660,7 +660,7 @@ def draw_ant_water(self, context):
         col.prop(self, "water_level")
 
 
-# Store propereties
+# Store properties
 def store_properties(operator, ob):
     ob.ant_landscape.ant_terrain_name = operator.ant_terrain_name
     ob.ant_landscape.at_cursor = operator.at_cursor
diff --git a/io_anim_bvh/import_bvh.py b/io_anim_bvh/import_bvh.py
index 6fcb5067..1392e74f 100644
--- a/io_anim_bvh/import_bvh.py
+++ b/io_anim_bvh/import_bvh.py
@@ -101,7 +101,7 @@ def read_bvh(context, file_path, rotate_mode='XYZ', global_scale=1.0):
 
     # Separate into a list of lists, each line a list of words.
     file_lines = file.readlines()
-    # Non standard carrage returns?
+    # Non standard carriage returns?
     if len(file_lines) == 1:
         file_lines = file_lines[0].split('\r')
 
diff --git a/io_coat3D/tex.py b/io_coat3D/tex.py
index b7f7b70b..5fe80574 100644
--- a/io_coat3D/tex.py
+++ b/io_coat3D/tex.py
@@ -77,7 +77,7 @@ def testi(objekti, texture_info, index_mat_name, uv_MODE_mat, mat_index):
 
 def readtexturefolder(objekti, mat_list, texturelist, is_new, udim_textures, udim_len): #read textures from texture file
 
-    # Let's check are we UVSet or MATERIAL modee
+    # Let's check are we UVSet or MATERIAL mode
     create_nodes = False
     for ind, index_mat in enumerate(objekti.material_slots):
 
@@ -638,7 +638,7 @@ def createExtraNodes(act_material, node, type):
 
 def matlab(objekti,mat_list,texturelist,is_new):
 
-    # FBX Materials: remove all nodes and create princibles node
+    # FBX Materials: remove all nodes and create principle node
 
     if(is_new):
         RemoveFbxNodes(objekti)
diff --git a/io_coat3D/texVR.py b/io_coat3D/texVR.py
index 1b5263c4..83e04f6f 100644
--- a/io_coat3D/texVR.py
+++ b/io_coat3D/texVR.py
@@ -132,7 +132,7 @@ def updatetextures(objekti): # Update 3DC textures
 
 def readtexturefolder(objekti, mat_list, texturelist, is_new, udim_textures): #read textures from texture file
 
-    # Let's check are we UVSet or MATERIAL modee
+    # Let's check are we UVSet or MATERIAL mode
     create_nodes = False
     for ind, index_mat in enumerate(objekti.material_slots):
 
@@ -801,7 +801,7 @@ def matlab(objekti,mat_list,texturelist,is_new):
 
     print('Welcome facture matlab function')
 
-    ''' FBX Materials: remove all nodes and create princibles node'''
+    ''' FBX Materials: remove all nodes and create principle node'''
     if(is_new):
         RemoveFbxNodes(objekti)
 
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index d407ecc8..c6461852 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -161,7 +161,7 @@ def SVGParseTransform(transform):
 
         proc = SVGTransforms.get(func)
         if proc is None:
-            raise Exception('Unknown trasnform function: ' + func)
+            raise Exception('Unknown transform function: ' + func)
 
         m = m @ proc(params)
 
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py
index 33af9b3e..5f81c995 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py
@@ -40,7 +40,7 @@ def gather_channels_baked(obj_uuid, frame_range, export_settings):
             start_frame, end_frame = frame_range
 
     # use action if exists, else obj_uuid
-    # When an object need some forced baked, there are 2 situtations:
+    # When an object need some forced baked, there are 2 situations:
     # - Non animated object, but there are some selection, so we need to bake
     # - Object parented to bone. So we need to bake, because of inverse transforms on non default TRS armatures
     # In this last case, there are 2 situations :
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index e6cbd80c..0b4c52bb 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -266,7 +266,7 @@ def export(file,
     # store files to copy
     copy_set = set()
 
-    # store names of newly cerated meshes, so we dont overlap
+    # store names of newly created meshes, so we dont overlap
     mesh_name_set = set()
 
     fw = file.write
diff --git a/magic_uv/op/texture_projection.py b/magic_uv/op/texture_projection.py
index d1ec96c3..cdd1e4b1 100644
--- a/magic_uv/op/texture_projection.py
+++ b/magic_uv/op/texture_projection.py
@@ -217,7 +217,7 @@ class _Properties:
         )
         scene.muv_texture_projection_adjust_window = BoolProperty(
             name="Adjust Window",
-            description="Scale of renderered texture is fitted to window",
+            description="Scale of rendered texture is fitted to window",
             default=True
         )
         scene.muv_texture_projection_apply_tex_aspect = BoolProperty(
diff --git a/magic_uv/op/texture_wrap.py b/magic_uv/op/texture_wrap.py
index 80db3296..bd454ff8 100644
--- a/magic_uv/op/texture_wrap.py
+++ b/magic_uv/op/texture_wrap.py
@@ -246,7 +246,7 @@ class MUV_OT_TextureWrap_Set(bpy.types.Operator):
                     cv0, cv1, ov)
                 info["vert_vdiff"] = x - common_verts[0]["vert"].co
 
-                # calclulate factor
+                # calculate factor
                 fact_h = -info["vert_hdiff"].length / \
                     ref_info["vert_hdiff"].length
                 fact_v = info["vert_vdiff"].length / \
diff --git a/materials_utils/functions.py b/materials_utils/functions.py
index 93d700d8..e771fc6b 100644
--- a/materials_utils/functions.py
+++ b/materials_utils/functions.py
@@ -272,7 +272,7 @@ def mu_select_by_material_name(self, find_material_name, extend_selection = Fals
         if active_object.type == 'MESH':
             # if not extending the selection, deselect all first
             #  (Without this, edges/faces were still selected
-            #   while the faces were deselcted)
+            #   while the faces were deselected)
             if not extend_selection:
                 bpy.ops.mesh.select_all(action = 'DESELECT')
 
diff --git a/materials_utils/operators.py b/materials_utils/operators.py
index 98eab763..dbb5de6a 100644
--- a/materials_utils/operators.py
+++ b/materials_utils/operators.py
@@ -720,7 +720,7 @@ class MATERIAL_OT_materialutilities_auto_smooth_angle(bpy.types.Operator):
     set_smooth_shading: BoolProperty(
             name = "Set Smooth",
             description = "Set Smooth shading for the affected objects\n"
-                   "This overrides the currenth smooth/flat shading that might be set to different parts of the object",
+                   "This overrides the current smooth/flat shading that might be set to different parts of the object",
             default = True
             )
 
diff --git a/measureit/__init__.py b/measureit/__init__.py
index c7f4fc7e..8868d835 100644
--- a/measureit/__init__.py
+++ b/measureit/__init__.py
@@ -305,7 +305,7 @@ def register():
     Scene.measureit_debug = BoolProperty(name="Debug",
                                          description="Display information for debugging"
                                                      " (expand/collapse for enabling or disabling)"
-                                                     " this information is only renderered for "
+                                                     " this information is only rendered for "
                                                      "selected objects",
                                          default=False)
     Scene.measureit_debug_select = BoolProperty(name="Selected",
diff 

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list