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:
authorAlan Odom <clockmender@icloud.com>2020-02-04 15:51:17 +0300
committerRune Morling <ermo.blender.org@spammesenseless.net>2020-02-04 16:25:53 +0300
commit1a6900ade707f3d634f7693e47a7c89c12ab37a8 (patch)
tree222631af250175ce968841230556c30da024b345 /precision_drawing_tools/pdt_xall.py
parent2a4f0769e5c69ec3dd6173deacbf1de79f17d2a5 (diff)
PDT: Docstring fixes and a small bug fix
All Docstrings have been examined for typos and format, etc. Small code change to set Selection Mode to "SEL" if operation is not "C" or "P" to avoid possible errors when using other operations.
Diffstat (limited to 'precision_drawing_tools/pdt_xall.py')
-rw-r--r--precision_drawing_tools/pdt_xall.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/precision_drawing_tools/pdt_xall.py b/precision_drawing_tools/pdt_xall.py
index f14fc292..92e1eb44 100644
--- a/precision_drawing_tools/pdt_xall.py
+++ b/precision_drawing_tools/pdt_xall.py
@@ -40,7 +40,8 @@ def order_points(edge, point_list):
v1, v2 = edge
def dist(coord):
- """MEasure distance between two coordinates."""
+ """Measure distance between two coordinates."""
+
return (v1 - coord).length
point_list = sorted(point_list, key=dist)
@@ -203,7 +204,8 @@ def unselect_nonintersecting(bm, d_edges, edge_indices):
def intersect_all(context):
"""Computes All intersections with Crossing Geometry.
- Deletes original edges and replaces with new intersected edges
+ Note:
+ Deletes original edges and replaces with new intersected edges
Args:
context: Blender bpy.context instance.
@@ -251,7 +253,7 @@ class PDT_OT_IntersectAllEdges(bpy.types.Operator):
@classmethod
def poll(cls, context):
- """Check to see object is in correct condidtion.
+ """Check to see object is in correct condition.
Args:
context: Blender bpy.context instance.
@@ -267,7 +269,8 @@ class PDT_OT_IntersectAllEdges(bpy.types.Operator):
def execute(self, context):
"""Computes All intersections with Crossing Geometry.
- Deletes original edges and replaces with new intersected edges
+ Note:
+ Deletes original edges and replaces with new intersected edges
Args:
context: Blender bpy.context instance.