Cleanup: fix various typos

Contributed by luzpaz.

Differential Revision: https://developer.blender.org/D15328
This commit is contained in:
Brecht Van Lommel 2022-06-30 17:20:39 +02:00
parent 870f9775d7
commit 6d7056ab6e
17 changed files with 21 additions and 21 deletions

View File

@ -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)"
)

View File

@ -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

View File

@ -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:

View File

@ -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''

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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")

View File

@ -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())

View File

@ -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:

View File

@ -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

View File

@ -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()

View File

@ -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"

View File

@ -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']:

View File

@ -190,7 +190,7 @@ class DemoModeRun(bpy.types.Operator):
if extern_demo_mode_run():
return {'FINISHED'}
else:
self.report({'ERROR'}, "Cant load demo.py config, run: File -> Demo Mode (Setup)")
self.report({'ERROR'}, "Can't load demo.py config, run: File -> Demo Mode (Setup)")
return {'CANCELLED'}

View File

@ -40,7 +40,7 @@ def as_string(dirpath, random_order, exit, **kwargs):
"# generated file\n",
"\n",
"# edit the search path so other systems may find the files below\n",
"# based on name only if the absolute paths cant be found\n",
"# based on name only if the absolute paths cannot be found\n",
"# Use '//' for current blend file path.\n",
"\n",
"search_path = %r\n" % dirpath,

View File

@ -523,7 +523,7 @@ def load_config(cfg_name=DEMO_CFG):
if not os.path.exists(filepath_test):
filepath_test = lookup_file(filepath_test) # attempt to get from searchpath
if not os.path.exists(filepath_test):
print("Cant find %r or %r, skipping!")
print("Can't find %r or %r, skipping!")
continue
filecfg["file"] = os.path.normpath(filepath_test)