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 <brechtvanlommel@gmail.com>2018-10-19 18:59:58 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-10-19 19:12:29 +0300
commitd7d3233715503ecc15b8dd1973f7e73257e2cbda (patch)
treef9f9ab24b89fe574b3f972e45c8337bcd791a9b1 /mesh_extra_tools
parent84b817117328b3193533324846ec389b1f5fe5c4 (diff)
Spelling fixes in comments and descriptions, patch by luzpaz.
Differential Revision: https://developer.blender.org/D3746
Diffstat (limited to 'mesh_extra_tools')
-rw-r--r--mesh_extra_tools/__init__.py2
-rw-r--r--mesh_extra_tools/mesh_edge_roundifier.py4
-rw-r--r--mesh_extra_tools/mesh_edges_length.py56
-rw-r--r--mesh_extra_tools/mesh_edgetools.py16
-rw-r--r--mesh_extra_tools/mesh_fastloop.py4
-rw-r--r--mesh_extra_tools/mesh_help.py2
-rw-r--r--mesh_extra_tools/mesh_pen_tool.py2
-rw-r--r--mesh_extra_tools/mesh_select_tools/mesh_select_by_edge_length.py4
-rw-r--r--mesh_extra_tools/mesh_vertex_chamfer.py2
-rw-r--r--mesh_extra_tools/pkhg_faces.py2
10 files changed, 47 insertions, 47 deletions
diff --git a/mesh_extra_tools/__init__.py b/mesh_extra_tools/__init__.py
index 3ea99e58..8c7ec764 100644
--- a/mesh_extra_tools/__init__.py
+++ b/mesh_extra_tools/__init__.py
@@ -212,7 +212,7 @@ class EditToolsPanel(Panel):
EDGEDROP = scene.mesh_extra_tools.UiTabDrop[1]
FACEDROP = scene.mesh_extra_tools.UiTabDrop[2]
UTILSDROP = scene.mesh_extra_tools.UiTabDrop[3]
- # Change icons depending on the bool state (complient with the rest of the UI)
+ # Change icons depending on the bool state (compliant with the rest of the UI)
icon_active_0 = "TRIA_RIGHT" if not VERTDROP else "TRIA_DOWN"
icon_active_1 = "TRIA_RIGHT" if not EDGEDROP else "TRIA_DOWN"
icon_active_2 = "TRIA_RIGHT" if not FACEDROP else "TRIA_DOWN"
diff --git a/mesh_extra_tools/mesh_edge_roundifier.py b/mesh_extra_tools/mesh_edge_roundifier.py
index de3eb2bf..609d0df7 100644
--- a/mesh_extra_tools/mesh_edge_roundifier.py
+++ b/mesh_extra_tools/mesh_edge_roundifier.py
@@ -76,7 +76,7 @@ def debugPrintNew(debugs, *text):
print(row)
-# Geometry and math calcualtion methods #
+# Geometry and math calculation methods #
class CalculationHelper:
@@ -403,7 +403,7 @@ class EdgeRoundifier(Operator):
items=workModeItems,
name="",
default='Normal',
- description="Normal work with the current given paramaters set by the user\n"
+ description="Normal work with the current given parameters set by the user\n"
"Reset - changes back the parameters to their default values"
)
entryModeItems = [("Radius", "Radius", ""), ("Angle", "Angle", "")]
diff --git a/mesh_extra_tools/mesh_edges_length.py b/mesh_extra_tools/mesh_edges_length.py
index 21276232..0c1f3cb4 100644
--- a/mesh_extra_tools/mesh_edges_length.py
+++ b/mesh_extra_tools/mesh_edges_length.py
@@ -60,7 +60,7 @@ class LengthSet(Operator):
bl_idname = "object.mesh_edge_length_set"
bl_label = "Set edge length"
bl_description = ("Change one selected edge length by a specified target,\n"
- "existing lenght and different modes\n"
+ "existing length and different modes\n"
"Note: works only with Edges that not share a vertex")
bl_options = {'REGISTER', 'UNDO'}
@@ -68,35 +68,35 @@ class LengthSet(Operator):
name="Original length",
options={'HIDDEN'},
)
- set_lenght_type = EnumProperty(
+ set_length_type = EnumProperty(
items=[
('manual', "Manual",
- "Input manually the desired Target Lenght"),
- ('existing', "Existing Lenght",
+ "Input manually the desired Target Length"),
+ ('existing', "Existing Length",
"Use existing geometry Edges' characteristics"),
],
name="Set Type of Input",
)
target_length = FloatProperty(
name="Target Length",
- description="Input a value for an Edges Lenght target",
+ description="Input a value for an Edges Length target",
default=1.00,
unit='LENGTH',
precision=5
)
- existing_lenght = EnumProperty(
+ existing_length = EnumProperty(
items=[
('min', "Shortest",
"Set all to shortest Edge of selection"),
('max', "Longest",
"Set all to the longest Edge of selection"),
('average', "Average",
- "Set all to the average Edge lenght of selection"),
+ "Set all to the average Edge length of selection"),
('active', "Active",
"Set all to the active Edge's one\n"
"Needs a selection to be done in Edge Select mode"),
],
- name="Existing lenght"
+ name="Existing length"
)
mode = EnumProperty(
items=[
@@ -119,7 +119,7 @@ class LengthSet(Operator):
)
originary_edge_length_dict = {}
- edge_lenghts = []
+ edge_lengths = []
selected_edges = ()
@classmethod
@@ -132,14 +132,14 @@ class LengthSet(Operator):
def draw(self, context):
layout = self.layout
- layout.label("Original Active lenght is: {:.3f}".format(self.old_length))
+ layout.label("Original Active length is: {:.3f}".format(self.old_length))
layout.label("Input Mode:")
- layout.prop(self, "set_lenght_type", expand=True)
- if self.set_lenght_type == 'manual':
+ layout.prop(self, "set_length_type", expand=True)
+ if self.set_length_type == 'manual':
layout.prop(self, "target_length")
else:
- layout.prop(self, "existing_lenght", text="")
+ layout.prop(self, "existing_length", text="")
layout.label("Mode:")
layout.prop(self, "mode", text="")
@@ -147,14 +147,14 @@ class LengthSet(Operator):
layout.label("Resize Behavior:")
layout.prop(self, "behaviour", text="")
- def get_existing_edge_lenght(self, bm):
- if self.existing_lenght != "active":
- if self.existing_lenght == "min":
- return min(self.edge_lenghts)
- if self.existing_lenght == "max":
- return max(self.edge_lenghts)
- elif self.existing_lenght == "average":
- return sum(self.edge_lenghts) / float(len(self.selected_edges))
+ def get_existing_edge_length(self, bm):
+ if self.existing_length != "active":
+ if self.existing_length == "min":
+ return min(self.edge_lengths)
+ if self.existing_length == "max":
+ return max(self.edge_lengths)
+ elif self.existing_length == "average":
+ return sum(self.edge_lengths) / float(len(self.selected_edges))
else:
bm.edges.ensure_lookup_table()
active_edge_length = None
@@ -168,7 +168,7 @@ class LengthSet(Operator):
return 0.0
def invoke(self, context, event):
- wm = context.window_manager
+ wm = context.window_managerlength
obj = context.edit_object
bm = bmesh.from_edit_mesh(obj.data)
@@ -197,7 +197,7 @@ class LengthSet(Operator):
# warning, it's a constant !
verts_index = ''.join((str(edge.verts[0].index), str(edge.verts[1].index)))
self.originary_edge_length_dict[verts_index] = vector
- self.edge_lenghts.append(vector.length)
+ self.edge_lengths.append(vector.length)
self.old_length = vector.length
else:
self.report({'ERROR'}, _error_message)
@@ -233,21 +233,21 @@ class LengthSet(Operator):
# what we should see in original length dialog field
self.old_length = vector.length
- if self.set_lenght_type == 'manual':
+ if self.set_length_type == 'manual':
vector.length = abs(self.target_length)
else:
- get_lenghts = self.get_existing_edge_lenght(bm)
+ get_lengths = self.get_existing_edge_length(bm)
# check for edit mode
- if not get_lenghts:
+ if not get_lengths:
self.report({'WARNING'},
"Operation Cancelled. "
"Active Edge could not be determined (needs selection in Edit Mode)")
return {'CANCELLED'}
- vector.length = get_lenghts
+ vector.length = get_lengths
if vector.length == 0.0:
- self.report({'ERROR'}, "Operation cancelled. Target lenght is set to zero")
+ self.report({'ERROR'}, "Operation cancelled. Target length is set to zero")
return {'CANCELLED'}
center_vector = get_center_vector((edge.verts[0].co, edge.verts[1].co))
diff --git a/mesh_extra_tools/mesh_edgetools.py b/mesh_extra_tools/mesh_edgetools.py
index cc8b2dc8..cfd6c75e 100644
--- a/mesh_extra_tools/mesh_edgetools.py
+++ b/mesh_extra_tools/mesh_edgetools.py
@@ -391,7 +391,7 @@ sum of the angles will be less.
"""
# @todo
# - Figure out how to deal with n-gons
-# How the heck is a face with 8 verts definied mathematically?
+# How the heck is a face with 8 verts defined mathematically?
# How do I then find the intersection point of a line with said vert?
# How do I know if that point is "inside" all the verts?
# I have no clue, and haven't been able to find anything on it so far
@@ -1162,7 +1162,7 @@ class Shaft(Operator):
)
flip = BoolProperty(
name="Flip Second Edge",
- description="Flip the percieved direction of the second edge",
+ description="Flip the perceived direction of the second edge",
default=False
)
radius = FloatProperty(
@@ -1255,7 +1255,7 @@ class Shaft(Operator):
# the user has changed selection.
# We then need to make sure that the active object really is an edge
# (robustness check)
- # Finally, if the active edge is not the inital one, we flip them
+ # Finally, if the active edge is not the initial one, we flip them
# and have the GUI reflect that
if self.last_edge == self.edge:
if isinstance(bm.select_history.active, bmesh.types.BMEdge):
@@ -1336,20 +1336,20 @@ class Shaft(Operator):
for i in range(len(verts) - 2):
init_vec = distance_point_line(verts[i + 2].co, verts[0].co, verts[1].co)
co = init_vec + verts[i + 2].co
- # These will be rotated about the orgin so will need to be shifted:
+ # These will be rotated about the origin so will need to be shifted:
for j in range(numV):
verts_out.append(co - (matrices[j] * init_vec))
elif self.shaftType == 1:
for i in verts:
init_vec = distance_point_line(i.co, active.verts[0].co, active.verts[1].co)
co = init_vec + i.co
- # These will be rotated about the orgin so will need to be shifted:
+ # These will be rotated about the origin so will need to be shifted:
for j in range(numV):
verts_out.append(co - (matrices[j] * init_vec))
# Else if a line and a point was selected:
elif self.shaftType == 2:
init_vec = distance_point_line(verts[2].co, verts[0].co, verts[1].co)
- # These will be rotated about the orgin so will need to be shifted:
+ # These will be rotated about the origin so will need to be shifted:
verts_out = [
(verts[i].co - (matrices[j] * init_vec)) for i in range(2) for j in range(numV)
]
@@ -1368,7 +1368,7 @@ class Shaft(Operator):
else:
vec = verts[0].co + Vector((0, self.radius, 0))
init_vec = distance_point_line(vec, verts[0].co, verts[1].co)
- # These will be rotated about the orgin so will need to be shifted:
+ # These will be rotated about the origin so will need to be shifted:
verts_out = [
(verts[i].co - (matrices[j] * init_vec)) for i in range(2) for j in range(numV)
]
@@ -1453,7 +1453,7 @@ class Slice(Operator):
make_copy = BoolProperty(
name="Make Copy",
- description="Make new vertices at intersection points instead of spliting the edge",
+ description="Make new vertices at intersection points instead of splitting the edge",
default=False
)
rip = BoolProperty(
diff --git a/mesh_extra_tools/mesh_fastloop.py b/mesh_extra_tools/mesh_fastloop.py
index 8e56f7d6..61e9b0d2 100644
--- a/mesh_extra_tools/mesh_fastloop.py
+++ b/mesh_extra_tools/mesh_fastloop.py
@@ -50,8 +50,8 @@ Bartius Crouch (Crouch) - http://sites.google.com/site/bartiuscrouch/
Dealga McArdle (zeffii) - http://www.digitalaphasia.com
Version history:-
-v0.16 - Ammended script for compatibility with recent API changes
-v0.15 - Ammended script meta information and button rendering code for
+v0.16 - Amended script for compatibility with recent API changes
+v0.15 - Amended script meta information and button rendering code for
compatibility with recent API changes
v0.14 - Modal operator
v0.13 - Initial revision
diff --git a/mesh_extra_tools/mesh_help.py b/mesh_extra_tools/mesh_help.py
index 51341223..5df85600 100644
--- a/mesh_extra_tools/mesh_help.py
+++ b/mesh_extra_tools/mesh_help.py
@@ -3,7 +3,7 @@
# Note: this script contains the Help Operator used by the various functions
# Usage: add a key string to the dictionary in this file with the list of strings to pass to labels
# and call the operator from the add-on UI draw function by passing the help_ids parameter
-# If the size of the pop-up if needed, define popup_size in the call by using varibles
+# If the size of the pop-up if needed, define popup_size in the call by using variables
# Example (with using the variable props):
# props = layout.row("mesh.extra_tools_help")
# props.help_ids = "default"
diff --git a/mesh_extra_tools/mesh_pen_tool.py b/mesh_extra_tools/mesh_pen_tool.py
index fbdc450b..f57e080a 100644
--- a/mesh_extra_tools/mesh_pen_tool.py
+++ b/mesh_extra_tools/mesh_pen_tool.py
@@ -280,7 +280,7 @@ class pen_tool_properties(PropertyGroup):
)
b1 = BoolProperty(
name="Edge Length",
- description="Display All Lenghts of Drawn Edges",
+ description="Display All Lengths of Drawn Edges",
default=False
)
b2 = BoolProperty(
diff --git a/mesh_extra_tools/mesh_select_tools/mesh_select_by_edge_length.py b/mesh_extra_tools/mesh_select_tools/mesh_select_by_edge_length.py
index b77f9750..3ae489d5 100644
--- a/mesh_extra_tools/mesh_select_tools/mesh_select_by_edge_length.py
+++ b/mesh_extra_tools/mesh_select_tools/mesh_select_by_edge_length.py
@@ -129,7 +129,7 @@ class Select_by_edge_length():
bpy.ops.object.mode_set(mode='EDIT')
- # Get the lenght of an edge, by giving this function all verts (2) in the edge
+ # Get the length of an edge, by giving this function all verts (2) in the edge
def getEdgeLength(self, verts):
vec1 = self.ob.data.vertices[verts[0]].co
@@ -199,7 +199,7 @@ class Select_init(bpy.types.Operator):
edgeSize = EnumProperty(
items=sizes,
name="Edge comparison",
- description="Choose the relation to set edge lenght",
+ description="Choose the relation to set edge length",
default='EQUAL'
)
extend = BoolProperty(
diff --git a/mesh_extra_tools/mesh_vertex_chamfer.py b/mesh_extra_tools/mesh_vertex_chamfer.py
index d6fd8080..62383c38 100644
--- a/mesh_extra_tools/mesh_vertex_chamfer.py
+++ b/mesh_extra_tools/mesh_vertex_chamfer.py
@@ -53,7 +53,7 @@ class VertexChamfer(Operator):
)
relative = BoolProperty(
name="Relative",
- description="If Relative, Champfer size is relative to the edge lenght",
+ description="If Relative, Champfer size is relative to the edge length",
default=True
)
dissolve = BoolProperty(
diff --git a/mesh_extra_tools/pkhg_faces.py b/mesh_extra_tools/pkhg_faces.py
index ec698e55..08faf560 100644
--- a/mesh_extra_tools/pkhg_faces.py
+++ b/mesh_extra_tools/pkhg_faces.py
@@ -749,7 +749,7 @@ def prepare(self, context, remove_start_faces=True):
def make_one_inset(self, context, bm=None, ringvectors=None, center=None,
normal=None, t=None, base_height=0):
- # a face will get 'inserted' faces to create (normaly) a hole if t is > 0 and < 1)
+ # a face will get 'inserted' faces to create (normally) a hole if t is > 0 and < 1)
tmp = []
for el in ringvectors: