diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-01-05 17:27:33 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-01-05 17:46:41 +0300 |
commit | d68dca98ce6705dd69285692f3cdc1dbf2213c1d (patch) | |
tree | 293ad05d82522964478ddacb22e56f831194043c /precision_drawing_tools | |
parent | b1cec919ec7d255c29d31bc21c91d98e0d118182 (diff) |
Cleanup: fix typos in source code
Contributed by luzpaz.
Differential Revision: https://developer.blender.org/D5801
Diffstat (limited to 'precision_drawing_tools')
-rw-r--r-- | precision_drawing_tools/__init__.py | 2 | ||||
-rw-r--r-- | precision_drawing_tools/pdt_command.py | 2 | ||||
-rw-r--r-- | precision_drawing_tools/pdt_command_functions.py | 4 | ||||
-rw-r--r-- | precision_drawing_tools/pdt_design.py | 6 | ||||
-rw-r--r-- | precision_drawing_tools/pdt_functions.py | 6 | ||||
-rw-r--r-- | precision_drawing_tools/pdt_menus.py | 2 | ||||
-rw-r--r-- | precision_drawing_tools/pdt_msg_strings.py | 4 | ||||
-rw-r--r-- | precision_drawing_tools/pdt_tangent.py | 10 |
8 files changed, 18 insertions, 18 deletions
diff --git a/precision_drawing_tools/__init__.py b/precision_drawing_tools/__init__.py index 5e333969..a39eb0b5 100644 --- a/precision_drawing_tools/__init__.py +++ b/precision_drawing_tools/__init__.py @@ -32,7 +32,7 @@ bl_info = { "version": (1, 5, 1), "blender": (2, 90, 0), "location": "View3D > UI > PDT", - "description": "Precision Drawing Tools for Acccurate Modelling", + "description": "Precision Drawing Tools for Accurate Modelling", "warning": "", "doc_url": "https://github.com/Clockmender/Precision-Drawing-Tools/wiki", "category": "3D View", diff --git a/precision_drawing_tools/pdt_command.py b/precision_drawing_tools/pdt_command.py index 1f10e3ff..2baf3ca7 100644 --- a/precision_drawing_tools/pdt_command.py +++ b/precision_drawing_tools/pdt_command.py @@ -465,7 +465,7 @@ def command_parse(context): mode_sel = 'SEL' if mode == "a" and operation not in {"C", "P"}: - # Place new Vetex, or Extrude Vertices by Absolute Coords. + # Place new Vertex, or Extrude Vertices by Absolute Coords. if mode_sel == 'REL': pg.select = 'SEL' mode_sel = 'SEL' diff --git a/precision_drawing_tools/pdt_command_functions.py b/precision_drawing_tools/pdt_command_functions.py index 7087f6fa..9980be87 100644 --- a/precision_drawing_tools/pdt_command_functions.py +++ b/precision_drawing_tools/pdt_command_functions.py @@ -90,7 +90,7 @@ def vector_build(context, pg, obj, operation, values, num_values): pg: PDT Parameters Group - our variables obj: The Active Object operation: The Operation e.g. Create New Vertex - values: The paramters passed e.g. 1,4,3 for Cartesian Coordinates + values: The parameters passed e.g. 1,4,3 for Cartesian Coordinates num_values: The number of values passed - determines the function Returns: @@ -320,7 +320,7 @@ def placement_arc_centre(context, operation): def placement_intersect(context, operation): - """Manipulates Geometry, or Objects by Convergance Intersection between 4 points, or 2 Edges. + """Manipulates Geometry, or Objects by Convergence Intersection between 4 points, or 2 Edges. Args: context: Blender bpy.context instance. diff --git a/precision_drawing_tools/pdt_design.py b/precision_drawing_tools/pdt_design.py index e4a0cdeb..f254efa4 100644 --- a/precision_drawing_tools/pdt_design.py +++ b/precision_drawing_tools/pdt_design.py @@ -45,8 +45,8 @@ class PDT_OT_PlacementAbs(Operator): Note: - Reads pg.operate from Operation Mode Selector as 'operation' - Reads pg.cartesian_coords scene variables to: - -- set position of CUrsor (CU) - -- set postion of Pivot Point (PP) + -- set position of Cursor (CU) + -- set position of Pivot Point (PP) -- MoVe geometry/objects (MV) -- Extrude Vertices (EV) -- Split Edges (SE) @@ -534,7 +534,7 @@ class PDT_OT_PlacementInt(Operator): bl_options = {"REGISTER", "UNDO"} def execute(self, context): - """Manipulates Geometry, or Objects by Convergance Intersection between 4 points, or 2 Edges. + """Manipulates Geometry, or Objects by Convergence Intersection between 4 points, or 2 Edges. Note: - Reads pg.operation from Operation Mode Selector as 'operation' diff --git a/precision_drawing_tools/pdt_functions.py b/precision_drawing_tools/pdt_functions.py index fb73b765..e426e3fa 100644 --- a/precision_drawing_tools/pdt_functions.py +++ b/precision_drawing_tools/pdt_functions.py @@ -51,7 +51,7 @@ def debug(msg, prefix=""): {prefix}{caller file name:line number}| {msg} Args: - msg: Incomming message to display + msg: Incoming message to display prefix: Always Blank Returns: @@ -238,7 +238,7 @@ def view_coords(x_loc, y_loc, z_loc): z_loc: Z coordinate from vector Returns: - Vector adjusted to View's Inverted Tranformation Matrix. + Vector adjusted to View's Inverted Transformation Matrix. """ areas = [a for a in bpy.context.screen.areas if a.type == "VIEW_3D"] @@ -256,7 +256,7 @@ def view_coords_i(x_loc, y_loc, z_loc): """Converts Screen Oriented input Vector values to new World Vector. Note: - Converts View tranformation Matrix to Rotational Matrix + Converts View transformation Matrix to Rotational Matrix Args: x_loc: X coordinate from vector diff --git a/precision_drawing_tools/pdt_menus.py b/precision_drawing_tools/pdt_menus.py index 603b4379..ca5551ea 100644 --- a/precision_drawing_tools/pdt_menus.py +++ b/precision_drawing_tools/pdt_menus.py @@ -412,7 +412,7 @@ class PDT_PT_PanelCommandLine(Panel): col = row.column() col.prop(pdt_pg, "select", text="Mode") row = layout.row() - row.label(text="Comand Line, uses Plane & Mode Options") + row.label(text="Command Line, uses Plane & Mode Options") row = layout.row() row.prop(pdt_pg, "command", text="") # Try Re-run diff --git a/precision_drawing_tools/pdt_msg_strings.py b/precision_drawing_tools/pdt_msg_strings.py index 65a113b2..23099779 100644 --- a/precision_drawing_tools/pdt_msg_strings.py +++ b/precision_drawing_tools/pdt_msg_strings.py @@ -50,7 +50,7 @@ PDT_LAB_PLANE = "Plane" PDT_LAB_MODE = "Mode" PDT_LAB_OPERATION = "Operation" PDT_LAB_PERCENT = "Percent" -PDT_LAB_INTERSECT = "Intersect" # "Convergance" +PDT_LAB_INTERSECT = "Intersect" # "Convergence" PDT_LAB_ORDER = "Order" PDT_LAB_FLIPANGLE = "Flip Angle" PDT_LAB_FLIPPERCENT = "Flip %" @@ -190,7 +190,7 @@ PDT_DES_PPSCALEFAC = "Scale Factors" PDT_DES_PPSIZE = "Pivot Size Factor" PDT_DES_PPWIDTH = "Pivot Line Width in Pixels" PDT_DES_PPTRANS = "Pivot Point Transparency" -PDT_DES_PIVOTDIS = "Input Distance to Compare with Sytem Distance to set Scales" +PDT_DES_PIVOTDIS = "Input Distance to Compare with System Distance to set Scales" PDT_DES_FILLETRAD = "Fillet Radius" PDT_DES_FILLETSEG = "Number of Fillet Segments" PDT_DES_FILLETPROF = "Fillet Profile" diff --git a/precision_drawing_tools/pdt_tangent.py b/precision_drawing_tools/pdt_tangent.py index 5b6243d5..6697a5a2 100644 --- a/precision_drawing_tools/pdt_tangent.py +++ b/precision_drawing_tools/pdt_tangent.py @@ -227,7 +227,7 @@ def tangent_setup(context, pg, plane, obj_data, centre_0, centre_1, centre_2, ra a1, a2, a3 = set_mode(plane) mode = pg.tangent_mode if plane == "LO": - # Translate world cordinates into view local (horiz, vert, depth) + # Translate world coordinates into view local (horiz, vert, depth) # centre_0 = view_coords_i(centre_0[a1], centre_0[a2], centre_0[a3]) centre_1 = view_coords_i(centre_1[a1], centre_1[a2], centre_1[a3]) @@ -399,11 +399,11 @@ def draw_tangents(tangent_vectors, obj_data): """Add Edges Representing the Tangents. Note: - The length of the tanget_vectors determins whcih tangents will be + The length of the tanget_vectors determines which tangents will be drawn, 3 gives Point Tangents, 4 gives Inner/Outer tangents Args: - tangent_vectors: A list of vectores representing the tangents + tangent_vectors: A list of vectors representing the tangents obj_data: A list giving Object, Object Location and Object Bmesh Returns: @@ -490,7 +490,7 @@ class PDT_OT_TangentOperate(Operator): Analyses distance between arc centres, or arc centre and tangent point to determine which mode is possible (Inner, Outer, or Point). If centres are - both contianed within 1 inferred circle, Inner tangents are not possible. + both contained within 1 inferred circle, Inner tangents are not possible. Arcs of same radius will have no intersection for outer tangents so these are calculated differently. @@ -557,7 +557,7 @@ class PDT_OT_TangentOperateSel(Operator): Analyses distance between arc centres, or arc centre and tangent point to determine which mode is possible (Inner, Outer, or Point). If centres are - both contianed within 1 inferred circle, Inner tangents are not possible. + both contained within 1 inferred circle, Inner tangents are not possible. Arcs of same radius will have no intersection for outer tangents so these are calculated differently. |