Cleanup: fix typos

Contributed by luzpaz.

Differential Revision: https://developer.blender.org/D16234
This commit is contained in:
Brecht Van Lommel 2022-10-14 19:52:42 +02:00
parent a2e69343eb
commit 99d2c979a9
26 changed files with 37 additions and 37 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -232,7 +232,7 @@ class MeasureitProperties(PropertyGroup):
default=15, min=6, max=500)
glarc_full: BoolProperty(name="arcfull",
description="Create full circunference",
description="Create full circumference",
default=False)
glarc_extrad: BoolProperty(name="arcextrad",
description="Adapt radio length to arc line",
@ -554,7 +554,7 @@ def add_item(box, idx, segment):
if segment.gltype == 1:
row.prop(segment, 'glorto', text="Orthogonal")
row.prop(segment, 'glocwarning', text="Warning")
# ortogonal (only segments)
# orthogonal (only segments)
if segment.gltype == 1:
if segment.glorto != "99":
row = box.row(align=True)

View File

@ -2560,7 +2560,7 @@ class MESH_OT_SURFSK_add_surface(Operator):
loop_segments_lengths = []
for st in range(len(pts_on_strokes_with_proportions_U)):
# When on the first stroke, add the segment from the selection to the dirst stroke
# When on the first stroke, add the segment from the selection to the first stroke
if st == 0:
loop_segments_lengths.append(
((self.main_object.matrix_world @ verts_ordered_U[lp].co) -

View File

@ -559,7 +559,7 @@ def PointInside(v, a, points):
def SignedArea(polygon, points):
"""Return the area of the polgon, positive if CCW, negative if CW.
"""Return the area of the polygon, positive if CCW, negative if CW.
Args:
polygon: list of vertex indices

View File

@ -3942,7 +3942,7 @@ class GStretch(Operator):
conversion_max: IntProperty(
name="Max Vertices",
description="Maximum number of vertices strokes will "
"have, when they are converted to geomtery",
"have, when they are converted to geometry",
default=32,
min=3,
soft_max=500,
@ -3951,7 +3951,7 @@ class GStretch(Operator):
conversion_min: IntProperty(
name="Min Vertices",
description="Minimum number of vertices strokes will "
"have, when they are converted to geomtery",
"have, when they are converted to geometry",
default=8,
min=3,
soft_max=500,
@ -5000,7 +5000,7 @@ class LoopToolsProps(PropertyGroup):
gstretch_conversion_max: IntProperty(
name="Max Vertices",
description="Maximum number of vertices strokes will "
"have, when they are converted to geomtery",
"have, when they are converted to geometry",
default=32,
min=3,
soft_max=500,
@ -5009,7 +5009,7 @@ class LoopToolsProps(PropertyGroup):
gstretch_conversion_min: IntProperty(
name="Min Vertices",
description="Minimum number of vertices strokes will "
"have, when they are converted to geomtery",
"have, when they are converted to geometry",
default=8,
min=3,
soft_max=500,

View File

@ -71,7 +71,7 @@ def tool_line():
# -----------------------------------------------------------------------------
# Tool Registraion
# Tool Registration
def get_tool_list(space_type, context_mode):
@ -149,7 +149,7 @@ def unregister_keymaps():
# -----------------------------------------------------------------------------
# Addon Registraion
# Addon Registration
classes = (
preferences.SnapUtilitiesPreferences,

View File

@ -152,7 +152,7 @@ def get_adj_faces(edges):
co_adj = 0
for f in e.link_faces:
# Search an adjacent face.
# Selected face has precedance.
# Selected face has precedence.
if not f.hide and f.normal != ZERO_VEC:
adj_exist = True
adj_f = f

View File

@ -2620,7 +2620,7 @@ class NWAddTextureSetup(Operator, NWBase):
nodes.active = image_texture_node
links.new(image_texture_node.outputs[0], target_input)
# The mapping setup following this will connect to the firrst input of this image texture.
# The mapping setup following this will connect to the first input of this image texture.
target_input = image_texture_node.inputs[0]
node.select = False
@ -3409,7 +3409,7 @@ class NWAddSequence(Operator, NWBase, ImportHelper):
self.report({'ERROR'}, "No file chosen")
return {'CANCELLED'}
elif files[0].name and (not filename or not path.exists(directory+filename)):
# User has selected multiple files without an active one, or the active one is non-existant
# User has selected multiple files without an active one, or the active one is non-existent
filename = files[0].name
if not path.exists(directory+filename):

View File

@ -125,7 +125,7 @@ def set_axis(mode_pl):
mode_pl: Taper Axis Selector variable as input
Returns:
3 Integer Indicies.
3 Integer Indices.
"""
order = {

View File

@ -12,7 +12,7 @@
"""This file contains all the Message Strings.
Note:
These strings are called by various programmes in PDT,
These strings are called by various programs in PDT,
they can be set to suit individual User requirements.
Args:

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 can't do enything else.
] # lame! - blender can't do anything else.
except BaseException as e:
print(e.__doc__)
print('An exception occurred: {}'.format(e))

View File

@ -469,7 +469,7 @@ class PovrayColorImageNode(Node, nodes_properties.ObjectNodeTree):
("0", "Planar", "Default planar mapping"),
("1", "Spherical", "Spherical mapping"),
("2", "Cylindrical", "Cylindrical mapping"),
("5", "Torroidal", "Torus or donut shaped mapping"),
("5", "Toroidal", "Torus or donut shaped mapping"),
),
default="0",
)
@ -556,7 +556,7 @@ class PovrayBumpMapNode(Node, nodes_properties.ObjectNodeTree):
("0", "Planar", "Default planar mapping"),
("1", "Spherical", "Spherical mapping"),
("2", "Cylindrical", "Cylindrical mapping"),
("5", "Torroidal", "Torus or donut shaped mapping"),
("5", "Toroidal", "Torus or donut shaped mapping"),
),
default="0",
)
@ -636,7 +636,7 @@ class PovrayImagePatternNode(Node, nodes_properties.ObjectNodeTree):
("0", "Planar", "Default planar mapping"),
("1", "Spherical", "Spherical mapping"),
("2", "Cylindrical", "Cylindrical mapping"),
("5", "Torroidal", "Torus or donut shaped mapping"),
("5", "Toroidal", "Torus or donut shaped mapping"),
),
default="0",
)