Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2022-03-15 20:29:39 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-03-15 20:31:13 +0300
commitdf34f4f1db405c5b8deeb03db0937bee9ba81f42 (patch)
tree7daaac24ea36db57a8ae0095e5b818190dde4910
parent2502531bb4ab4a76a876c003dab34951da31e1eb (diff)
Cleanup: fix source comment typos
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D14312
-rw-r--r--add_mesh_extra_objects/Blocks.py2
-rw-r--r--add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py2
-rw-r--r--ant_landscape/eroder.py2
-rw-r--r--curve_tools/show_resolution.py2
-rw-r--r--greasepencil_tools/import_brush_pack.py2
-rw-r--r--greasepencil_tools/rotate_canvas.py2
-rw-r--r--greasepencil_tools/timeline_scrub.py2
-rw-r--r--io_coat3D/__init__.py2
-rw-r--r--io_scene_fbx/export_fbx_bin.py2
-rw-r--r--io_scene_fbx/import_fbx.py10
-rw-r--r--io_scene_x3d/import_x3d.py2
-rw-r--r--materials_library_vx/__init__.py2
-rw-r--r--mesh_tissue/polyhedra.py4
-rw-r--r--mesh_tissue/tessellate_numpy.py8
-rw-r--r--mesh_tissue/utils.py2
-rw-r--r--mesh_tissue/weight_tools.py16
-rw-r--r--precision_drawing_tools/pdt_command_functions.py4
-rw-r--r--precision_drawing_tools/pdt_design.py4
-rwxr-xr-xrender_povray/object_primitives.py2
19 files changed, 36 insertions, 36 deletions
diff --git a/add_mesh_extra_objects/Blocks.py b/add_mesh_extra_objects/Blocks.py
index 928ed1d6..22676670 100644
--- a/add_mesh_extra_objects/Blocks.py
+++ b/add_mesh_extra_objects/Blocks.py
@@ -1246,7 +1246,7 @@ def plan(Thesketch, oldrows=0):
# rows = [list of row objects]
rows = []
- # splits are places where we NEED a row division, to accomidate openings
+ # splits are places where we NEED a row division, to accommodate openings
# add a split for the bottom row
splits = [dims['b'] + settings['hb']]
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 8fc92890..b1dd99bd 100644
--- a/add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py
+++ b/add_mesh_extra_objects/add_mesh_rocks/randomize_texture.py
@@ -135,7 +135,7 @@ def randomizeTexture(texture, level=1):
elif texture.type == 'VORONOI':
metrics = ['DISTANCE', 'DISTANCE_SQUARED', 'MANHATTAN', 'CHEBYCHEV',
'MINKOVSKY_HALF', 'MINKOVSKY_FOUR', 'MINKOVSKY']
- # Settings for first dispalcement level:
+ # Settings for first displacement level:
if level == 0:
tempInt = randint(0, 1)
texture.distance_metric = metrics[tempInt]
diff --git a/ant_landscape/eroder.py b/ant_landscape/eroder.py
index 1859ab66..558d2edb 100644
--- a/ant_landscape/eroder.py
+++ b/ant_landscape/eroder.py
@@ -154,7 +154,7 @@ class Grid:
if abs(yscale) > 1e-6 :
self.zscale = 1.0/yscale
- # keep just the z-values and null any ofsset
+ # keep just the z-values and null any offset
# we might catch a reshape error that will occur if nx*ny != # of vertices (if we are not dealing with a heightfield but with a mesh with duplicate x,y coords, like an axis aligned cube
self.center = np.array([c[2] for c in verts],dtype=np.single).reshape(nx,ny)
self.center = (self.center-np.amin(self.center))*self.zscale
diff --git a/curve_tools/show_resolution.py b/curve_tools/show_resolution.py
index cd63f59f..b2dbda7f 100644
--- a/curve_tools/show_resolution.py
+++ b/curve_tools/show_resolution.py
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-or-later
-# LOAD MODUL #
+# LOAD MODULE #
import bpy
from bpy import *
from bpy.props import *
diff --git a/greasepencil_tools/import_brush_pack.py b/greasepencil_tools/import_brush_pack.py
index 296ac957..695ca411 100644
--- a/greasepencil_tools/import_brush_pack.py
+++ b/greasepencil_tools/import_brush_pack.py
@@ -103,7 +103,7 @@ class GP_OT_install_brush_pack(bpy.types.Operator):
self.report({'WARNING'}, 'Brushes loaded from temp directory (No download)')
return {"FINISHED"}
- self.report({'ERROR'}, f'Check your internet connexion, Impossible to connect to url: {dl_url}')
+ self.report({'ERROR'}, f'Check your internet connection, impossible to connect to url: {dl_url}')
return {"CANCELLED"}
if file_size is None:
diff --git a/greasepencil_tools/rotate_canvas.py b/greasepencil_tools/rotate_canvas.py
index 6db43234..a733eb2d 100644
--- a/greasepencil_tools/rotate_canvas.py
+++ b/greasepencil_tools/rotate_canvas.py
@@ -251,7 +251,7 @@ class RC_OT_RotateCanvas(bpy.types.Operator):
self.pos_current = mathutils.Vector((event.mouse_region_x, event.mouse_region_y))
self.initial_pos = self.pos_current# for draw debug, else no need
- # Calculate inital vector
+ # Calculate initial vector
self.vector_initial = self.pos_current - self.center
self.vector_initial.normalize()
diff --git a/greasepencil_tools/timeline_scrub.py b/greasepencil_tools/timeline_scrub.py
index eaccab99..6a1913ae 100644
--- a/greasepencil_tools/timeline_scrub.py
+++ b/greasepencil_tools/timeline_scrub.py
@@ -156,7 +156,7 @@ class GPTS_OT_time_scrub(bpy.types.Operator):
if ob: # condition to allow empty scrubing
if ob.type != 'GPENCIL' or self.evaluate_gp_obj_key:
- # Get objet keyframe position
+ # Get object keyframe position
anim_data = ob.animation_data
action = None
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index 35e686cc..9a3d06af 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -1040,7 +1040,7 @@ def blender_3DC_blender(texturelist, file_applink_address):
- #tärkee että saadaan oikein käännettyä objekt
+ #it is important to get the object translated correctly
objekti.select_set(True)
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index 9dad8f01..50aefe03 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -1000,7 +1000,7 @@ def fbx_data_mesh_elements(root, me_obj, scene_data, done_meshes):
for e in me.edges:
if e.key not in edges_map:
continue # Only loose edges, in theory!
- # Blender squares those values before sending them to OpenSubdiv, when other softwares don't,
+ # Blender squares those values before sending them to OpenSubdiv, when other software don't,
# so we need to compensate that to get similar results through FBX...
t_ec[edges_map[e.key]] = e.crease * e.crease
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index f2726047..bf5641ca 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -1113,7 +1113,7 @@ def blen_read_geom_layer_smooth(fbx_obj, mesh):
return False
if fbx_layer_mapping == b'ByEdge':
- # some models have bad edge data, we cant use this info...
+ # some models have bad edge data, we can't use this info...
if not mesh.edges:
print("warning skipping sharp edges data, no valid edges...")
return False
@@ -1162,13 +1162,13 @@ def blen_read_geom_layer_edge_crease(fbx_obj, mesh):
layer_id = b'EdgeCrease'
fbx_layer_data = elem_prop_first(elem_find_first(fbx_layer, layer_id))
- # some models have bad edge data, we cant use this info...
+ # some models have bad edge data, we can't use this info...
if not mesh.edges:
print("warning skipping edge crease data, no valid edges...")
return False
if fbx_layer_mapping == b'ByEdge':
- # some models have bad edge data, we cant use this info...
+ # some models have bad edge data, we can't use this info...
if not mesh.edges:
print("warning skipping edge crease data, no valid edges...")
return False
@@ -1179,7 +1179,7 @@ def blen_read_geom_layer_edge_crease(fbx_obj, mesh):
fbx_layer_data, None,
fbx_layer_mapping, fbx_layer_ref,
1, 1, layer_id,
- # Blender squares those values before sending them to OpenSubdiv, when other softwares don't,
+ # Blender squares those values before sending them to OpenSubdiv, when other software don't,
# so we need to compensate that to get similar results through FBX...
xform=sqrt,
)
@@ -2666,7 +2666,7 @@ def load(operator, context, filepath="",
def connection_filter_ex(fbx_uuid, fbx_id, dct):
return [(c_found[0], c_found[1], c_type)
for (c_uuid, c_type) in dct.get(fbx_uuid, ())
- # 0 is used for the root node, which isnt in fbx_table_nodes
+ # 0 is used for the root node, which isn't in fbx_table_nodes
for c_found in (() if c_uuid == 0 else (fbx_table_nodes.get(c_uuid, (None, None)),))
if (fbx_id is None) or (c_found[0] and c_found[0].id == fbx_id)]
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 834485cb..8299faf1 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -45,7 +45,7 @@ def imageConvertCompat(path):
# rotation first defines axis then amount in radians
-# =============================== VRML Spesific
+# =============================== VRML Specific
def vrml_split_fields(value):
"""
diff --git a/materials_library_vx/__init__.py b/materials_library_vx/__init__.py
index 03d4f0cd..c19eab87 100644
--- a/materials_library_vx/__init__.py
+++ b/materials_library_vx/__init__.py
@@ -749,7 +749,7 @@ class MATLIB_MT_CatsMenu(Menu):
# def poll(cls, context):
# return context.active_object is not None
#
-# def exectute(self, context):
+# def execute(self, context):
# print("executing")
# return {"FINISHED"}
diff --git a/mesh_tissue/polyhedra.py b/mesh_tissue/polyhedra.py
index 394d605a..d58f08aa 100644
--- a/mesh_tissue/polyhedra.py
+++ b/mesh_tissue/polyhedra.py
@@ -174,7 +174,7 @@ class polyhedra_wireframe(Operator):
verts1 = [v.index for v in f1.verts]
va1 = verts1.index(e.verts[0].index)
vb1 = verts1.index(e.verts[1].index)
- # chech if order of the edge matches the order of the face
+ # check if order of the edge matches the order of the face
dir1 = va1 == (vb1+1)%len(verts1)
edge_vec1 = edge_vec if dir1 else -edge_vec
@@ -190,7 +190,7 @@ class polyhedra_wireframe(Operator):
verts2 = [v.index for v in f2.verts]
va2 = verts2.index(e.verts[0].index)
vb2 = verts2.index(e.verts[1].index)
- # chech if order of the edge matches the order of the face
+ # check if order of the edge matches the order of the face
dir2 = va2 == (vb2+1)%len(verts2)
# check for normal consistency
if dir1 != dir2:
diff --git a/mesh_tissue/tessellate_numpy.py b/mesh_tissue/tessellate_numpy.py
index d3c1fc21..50516b2a 100644
--- a/mesh_tissue/tessellate_numpy.py
+++ b/mesh_tissue/tessellate_numpy.py
@@ -576,7 +576,7 @@ def tessellate_patch(props):
for mat_id, _ob1 in enumerate(components):
if _ob1 == None: continue
- # Set original values (for next commponents)
+ # Set original values (for next components)
com_modifiers = _com_modifiers
bool_shapekeys = _bool_shapekeys
@@ -1252,7 +1252,7 @@ class tissue_tessellate(Operator):
min=1,
soft_max=5,
description="Automatically repeat the Tessellation using the "
- + "generated geometry as new base object.\nUsefull for "
+ + "generated geometry as new base object.\nUseful for "
+ "for branching systems. Dangerous!"
)
bool_combine : BoolProperty(
@@ -1567,7 +1567,7 @@ class tissue_tessellate(Operator):
if no_components:
layout = self.layout
layout.label(icon='OUTLINER_COLLECTION', text='Components from Active Collection')
- layout.label(icon='INFO', text="The Active Collection does not containt any Mesh,")
+ layout.label(icon='INFO', text="The Active Collection does not contain any Mesh,")
layout.label(text="Curve, Surface, Meta or Text object.")
return
elif self.component_mode == 'MATERIALS':
@@ -3725,7 +3725,7 @@ def offset_boundary_materials(bm, boundary_mat_offset=0, boundary_variable_offse
bound_verts_value = [0]*len(bm.faces)
bound_edges_value = [0]*len(bm.faces)
shift_faces = [0]*len(bm.faces)
- # store boundaries informations
+ # store boundaries information
for v in bm.verts:
if v.is_boundary:
for f in v.link_faces:
diff --git a/mesh_tissue/utils.py b/mesh_tissue/utils.py
index cf43d609..b617ac93 100644
--- a/mesh_tissue/utils.py
+++ b/mesh_tissue/utils.py
@@ -1432,7 +1432,7 @@ def mod_preserve_shape(mod):
def recurLayerCollection(layerColl, collName):
'''
- Recursivly transverse layer_collection for a particular name.
+ Recursively transverse layer_collection for a particular name.
'''
found = None
if (layerColl.name == collName):
diff --git a/mesh_tissue/weight_tools.py b/mesh_tissue/weight_tools.py
index d58adc6f..ef83f128 100644
--- a/mesh_tissue/weight_tools.py
+++ b/mesh_tissue/weight_tools.py
@@ -18,10 +18,10 @@
#-------------------------- COLORS / GROUPS EXCHANGER -------------------------#
# #
-# Vertex Color to Vertex Group allow you to convert colors channles to weight #
+# Vertex Color to Vertex Group allow you to convert colors channels to weight #
# maps. #
# The main purpose is to use vertex colors to store information when importing #
-# files from other softwares. The script works with the active vertex color #
+# files from other software. The script works with the active vertex color #
# slot. #
# For use the command "Vertex Clors to Vertex Groups" use the search bar #
# (space bar). #
@@ -229,27 +229,27 @@ class reaction_diffusion_prop(PropertyGroup):
update_weight_a : BoolProperty(
name="Update Vertex Group A", default=True,
- description="Tranfer Cache to the Vertex Groups named A")
+ description="Transfer Cache to the Vertex Groups named A")
update_weight_b : BoolProperty(
name="Update Vertex Group B", default=True,
- description="Tranfer Cache to the Vertex Groups named B")
+ description="Transfer Cache to the Vertex Groups named B")
update_colors_a : BoolProperty(
name="Update Vertex Color A", default=False,
- description="Tranfer Cache to the Vertex Color named A")
+ description="Transfer Cache to the Vertex Color named A")
update_colors_b : BoolProperty(
name="Update Vertex Color B", default=False,
- description="Tranfer Cache to the Vertex Color named B")
+ description="Transfer Cache to the Vertex Color named B")
update_colors : BoolProperty(
name="Update Vertex Color AB", default=False,
- description="Tranfer Cache to the Vertex Color named AB")
+ description="Transfer Cache to the Vertex Color named AB")
update_uv : BoolProperty(
name="Update UV", default=False,
- description="Tranfer Cache to the UV Map Layer named AB")
+ description="Transfer Cache to the UV Map Layer named AB")
normalize : BoolProperty(
name="Normalize values", default=False,
diff --git a/precision_drawing_tools/pdt_command_functions.py b/precision_drawing_tools/pdt_command_functions.py
index 6ae88baf..5224bbca 100644
--- a/precision_drawing_tools/pdt_command_functions.py
+++ b/precision_drawing_tools/pdt_command_functions.py
@@ -522,7 +522,7 @@ def set_angle_distance_two(context):
Note:
Uses 2 Selected Vertices to set pg.angle and pg.distance scene variables
also sets delta offset from these 2 points using standard Numpy Routines
- Works in Edit and Oject Modes.
+ Works in Edit and Object Modes.
Args:
context: Blender bpy.context instance.
@@ -603,7 +603,7 @@ def set_angle_distance_three(context):
Note:
Uses 3 Selected Vertices to set pg.angle and pg.distance scene variables
also sets delta offset from these 3 points using standard Numpy Routines
- Works in Edit and Oject Modes.
+ Works in Edit and Object Modes.
Args:
context: Blender bpy.context instance.
diff --git a/precision_drawing_tools/pdt_design.py b/precision_drawing_tools/pdt_design.py
index ddb7fb38..7b6b65ad 100644
--- a/precision_drawing_tools/pdt_design.py
+++ b/precision_drawing_tools/pdt_design.py
@@ -658,7 +658,7 @@ class PDT_OT_Angle2(Operator):
Note:
Uses 2 Selected Vertices to set pg.angle and pg.distance scene variables
also sets delta offset from these 2 points using standard Numpy Routines
- Works in Edit and Oject Modes.
+ Works in Edit and Object Modes.
Args:
context: Blender bpy.context instance.
@@ -685,7 +685,7 @@ class PDT_OT_Angle3(Operator):
Note:
Uses 3 Selected Vertices to set pg.angle and pg.distance scene variables
also sets delta offset from these 3 points using standard Numpy Routines
- Works in Edit and Oject Modes.
+ Works in Edit and Object Modes.
Args:
context: Blender bpy.context instance.
diff --git a/render_povray/object_primitives.py b/render_povray/object_primitives.py
index 2b9eab95..d017c4d0 100755
--- a/render_povray/object_primitives.py
+++ b/render_povray/object_primitives.py
@@ -856,7 +856,7 @@ def pov_sphere_define(context, op, ob, loc):
"""create the representation of POV sphere using a Blender icosphere.
Its nice platonic solid curvature better represents pov rendertime
- tesselation than a UV sphere"""
+ tessellation than a UV sphere"""
if op:
R = op.R