[Bf-extensions-cvs] [6d7056ab] master: Cleanup: fix various typos

Brecht Van Lommel noreply at git.blender.org
Thu Jun 30 17:23:36 CEST 2022


Commit: 6d7056ab6e342fba9a62ecfa2efd132ffe2e403a
Author: Brecht Van Lommel
Date:   Thu Jun 30 17:20:39 2022 +0200
Branches: master
https://developer.blender.org/rBA6d7056ab6e342fba9a62ecfa2efd132ffe2e403a

Cleanup: fix various typos

Contributed by luzpaz.

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

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

M	io_scene_gltf2/__init__.py
M	io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py
M	io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
M	io_scene_obj/import_obj.py
M	io_scene_x3d/import_x3d.py
M	magic_uv/utils/graph.py
M	mesh_tissue/utils.py
M	object_fracture_cell/__init__.py
M	object_fracture_cell/fracture_cell_setup.py
M	object_print3d_utils/export.py
M	render_povray/model_meta_topology.py
M	render_povray/model_poly_topology.py
M	render_povray/render_gui.py
M	space_view3d_math_vis/draw.py
M	system_demo_mode/__init__.py
M	system_demo_mode/config.py
M	system_demo_mode/demo_mode.py

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

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 7c6b128e..5fb93dba 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -1175,7 +1175,7 @@ class GLTF_AddonPreferences(bpy.types.AddonPreferences):
 
     settings_node_ui : bpy.props.BoolProperty(
             default= False,
-            description="Displays glTF Settings node in Shader Editor (Menu Add > Ouput)"
+            description="Displays glTF Settings node in Shader Editor (Menu Add > Output)"
             )
 
 
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 98ae8b82..3e67f1f7 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
@@ -37,7 +37,7 @@ def gather_animation_channels(obj_uuid: int,
     if blender_action.use_frame_range is True:
         bake_range_start = blender_action.frame_start
         bake_range_end = blender_action.frame_end
-        force_range = True # keyframe_points is read-only, we cant restrict here
+        force_range = True # keyframe_points is read-only, we can't restrict here
     else:
         groups = __get_channel_groups(blender_action, blender_object, export_settings)
         # Note: channels has some None items only for SK if some SK are not animated
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
index 20a919dc..a3a7a4c2 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
@@ -64,7 +64,7 @@ def gather_animations(  obj_uuid: int,
         # No TRS animation are found for this object.
         # But we need to bake, in case we export selection
         # (Only when force sampling is ON)
-        # If force sampling is OFF, can lead to inconsistant export anyway
+        # If force sampling is OFF, can lead to inconsistent export anyway
         if export_settings['gltf_selected'] is True and blender_object.type != "ARMATURE" and export_settings['gltf_force_sampling'] is True:
             channels = __gather_channels_baked(obj_uuid, export_settings)
             if channels is not None:
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index d41e72f8..63c4d0e1 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -584,7 +584,7 @@ def create_mesh(new_objects,
         len_face_vert_loc_indices = len(face_vert_loc_indices)
 
         if len_face_vert_loc_indices == 1:
-            faces.pop(f_idx)  # cant add single vert faces
+            faces.pop(f_idx)  # can't add single vert faces
 
         # Face with a single item in face_vert_nor_indices is actually a polyline!
         elif face_is_edge(face):
@@ -979,7 +979,7 @@ def load(context,
 
         # when there are faces that end with \
         # it means they are multiline-
-        # since we use xreadline we cant skip to the next line
+        # since we use xreadline we can't skip to the next line
         # so we need to know whether
         context_multi_line = b''
 
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 6d13bb79..228e0507 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -1003,13 +1003,13 @@ class vrmlNode(object):
                     print('\tWarning: Inline URL could not be found:', url)
                 else:
                     if url == self.getFilename():
-                        print('\tWarning: cant Inline yourself recursively:', url)
+                        print('\tWarning: can\'t Inline yourself recursively:', url)
                     else:
 
                         try:
                             data = gzipOpen(url)
                         except:
-                            print('\tWarning: cant open the file:', url)
+                            print('\tWarning: can\'t open the file:', url)
                             data = None
 
                         if data:
diff --git a/magic_uv/utils/graph.py b/magic_uv/utils/graph.py
index bebabf63..277800bc 100644
--- a/magic_uv/utils/graph.py
+++ b/magic_uv/utils/graph.py
@@ -29,7 +29,7 @@ class Edge:
             raise RuntimeError("Loop edge in {} is not supported."
                                .format(node.key))
         if node not in (self.node_1, self.node_2):
-            raise RuntimeError("Node {} does not belog this edge."
+            raise RuntimeError("Node {} does not belong to this edge."
                                .format(node.key))
         if self.node_1 == node:
             return self.node_2
diff --git a/mesh_tissue/utils.py b/mesh_tissue/utils.py
index b617ac93..b4331084 100644
--- a/mesh_tissue/utils.py
+++ b/mesh_tissue/utils.py
@@ -1251,7 +1251,7 @@ def get_weight(vertex_group, n_verts):
     :type vertex_group: :class:'bpy.types.VertexGroup'
     :arg n_verts: Number of Vertices (output list size).
     :type n_verts: int
-    :return: Readed weight values.
+    :return: Read weight values.
     :rtype: list
     """
     weight = [0]*n_verts
@@ -1267,7 +1267,7 @@ def get_weight_numpy(vertex_group, n_verts):
     :type vertex_group: :class:'bpy.types.VertexGroup'
     :arg n_verts: Number of Vertices (output list size).
     :type n_verts: int
-    :return: Readed weight values as numpy array.
+    :return: Read weight values as numpy array.
     :rtype: :class:'numpy.ndarray'
     """
     weight = [0]*n_verts
diff --git a/object_fracture_cell/__init__.py b/object_fracture_cell/__init__.py
index e9f70a44..543f86f1 100644
--- a/object_fracture_cell/__init__.py
+++ b/object_fracture_cell/__init__.py
@@ -482,7 +482,7 @@ class FractureCell(Operator):
         rowsub.prop(self, "use_data_match")
         rowsub = col.row()
 
-        # on same row for even layout but infact are not all that related
+        # on same row for even layout but in fact are not all that related
         rowsub.prop(self, "material_index")
         rowsub.prop(self, "use_interior_vgroup")
 
diff --git a/object_fracture_cell/fracture_cell_setup.py b/object_fracture_cell/fracture_cell_setup.py
index 8171e44e..2e735495 100644
--- a/object_fracture_cell/fracture_cell_setup.py
+++ b/object_fracture_cell/fracture_cell_setup.py
@@ -145,7 +145,7 @@ def cell_fracture_objects(
         random.shuffle(points)
         points[source_limit:] = []
 
-    # saddly we cant be sure there are no doubles
+    # sadly we can't be sure there are no doubles
     from mathutils import Vector
     to_tuple = Vector.to_tuple
     points = list({to_tuple(p, 4): p for p in points}.values())
diff --git a/object_print3d_utils/export.py b/object_print3d_utils/export.py
index aec19732..d17cd45f 100644
--- a/object_print3d_utils/export.py
+++ b/object_print3d_utils/export.py
@@ -79,7 +79,7 @@ def write_mesh(context, report_cb):
     # first ensure the path is created
     if export_path:
         # this can fail with strange errors,
-        # if the dir cant be made then we get an error later.
+        # if the dir can't be made then we get an error later.
         try:
             os.makedirs(export_path, exist_ok=True)
         except:
diff --git a/render_povray/model_meta_topology.py b/render_povray/model_meta_topology.py
index 33a335fa..47e874c5 100644
--- a/render_povray/model_meta_topology.py
+++ b/render_povray/model_meta_topology.py
@@ -180,7 +180,7 @@ def export_meta(file, metas, tab_write, DEF_MAT_NAME):
                 try:
                     one_material = elems[1].data.materials[
                         0
-                    ]  # lame! - blender cant do enything else.
+                    ]  # lame! - blender can't do enything else.
                 except BaseException as e:
                     print(e.__doc__)
                     print('An exception occurred: {}'.format(e))
@@ -236,7 +236,7 @@ def export_meta(file, metas, tab_write, DEF_MAT_NAME):
             importance = ob.pov.importance_value
 
             try:
-                material = meta.materials[0]  # lame! - blender cant do enything else.
+                material = meta.materials[0]  # lame! - blender can't do anything else.
             except:
                 material = None
 
diff --git a/render_povray/model_poly_topology.py b/render_povray/model_poly_topology.py
index c8a990ea..b4d200ec 100644
--- a/render_povray/model_poly_topology.py
+++ b/render_povray/model_poly_topology.py
@@ -52,7 +52,7 @@ def export_mesh(file,
     except BaseException as e:
         print(e.__doc__)
         print("An exception occurred: {}".format(e))
-        # also happens when curves cant be made into meshes because of no-data
+        # also happens when curves can't be made into meshes because of no-data
         return False  # To continue object loop
     if me:
         me.calc_loop_triangles()
diff --git a/render_povray/render_gui.py b/render_povray/render_gui.py
index 7baa7aff..e00e3705 100755
--- a/render_povray/render_gui.py
+++ b/render_povray/render_gui.py
@@ -242,7 +242,7 @@ class RENDER_PT_POV_hues(RenderButtonsPanel, Panel):
 
 
 class RENDER_PT_POV_pattern_rules(RenderButtonsPanel, Panel):
-    """Use this class to change pov sets of texture generating algorythms."""
+    """Use this class to change pov sets of texture generating algorithms."""
 
     bl_label = "Pattern Rules"
     bl_parent_id = "RENDER_PT_POV_render_settings"
diff --git a/space_view3d_math_vis/draw.py b/space_view3d_math_vis/draw.py
index 28722a99..de7ad946 100644
--- a/space_view3d_math_vis/draw.py
+++ b/space_view3d_math_vis/draw.py
@@ -29,7 +29,7 @@ COLOR_BOUNDING_BOX_ACTIVE = (1.0, 0.5, 0.0, 1.0)
 def tag_redraw_areas():
     context = bpy.context
 
-    # Py cant access notifers
+    # Py can't access notifers
     for window in context.window_manager.windows:
         for area in window.screen.areas:
             if area.type in ['VIEW_3D', 'PROPERTIES']:
diff --git a/system_demo_mode/__init__.py b/system_demo_mode/__init__.py
index 9af8b217..71870532 100644
--- a/system_demo_mode/__init__.py
+++ b/system_demo_mode/__init__.py
@@ -190,7 

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list