diff options
author | Alan Odom <clockmender@icloud.com> | 2020-01-30 23:58:48 +0300 |
---|---|---|
committer | Rune Morling <ermo.blender.org@spammesenseless.net> | 2020-02-01 18:44:06 +0300 |
commit | 83ad65d377f9899f624277cc90dd838496f0e4f3 (patch) | |
tree | 821438aab8f31c36205abbde3fdc04bfc4824ef0 /precision_drawing_tools/pdt_etof.py | |
parent | 0e4dd304d6e9a7368cbac785ae4128c426777beb (diff) |
PDT: Update Docstrings per Design Spec Document
Diffstat (limited to 'precision_drawing_tools/pdt_etof.py')
-rw-r--r-- | precision_drawing_tools/pdt_etof.py | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/precision_drawing_tools/pdt_etof.py b/precision_drawing_tools/pdt_etof.py index 5a7b0985..2e9f8487 100644 --- a/precision_drawing_tools/pdt_etof.py +++ b/precision_drawing_tools/pdt_etof.py @@ -35,14 +35,30 @@ from .pdt_functions import oops def failure_message(context): - """Warn to the user to select 1 edge and 1 face.""" + """Warn to the user to select 1 edge and 1 face. + + Args: + context: Blender bpy.context instance. + + Returns: + Nothing. + """ + pg = context.scene.pdt_pg pg.error = f"Select One Face and One Edge" context.window_manager.popup_menu(oops, title="Error", icon="ERROR") def failure_message_on_plane(context): - """Report an informative error message in a popup.""" + """Report an informative error message in a popup. + + Args: + context: Blender bpy.context instance. + + Returns: + Nothing. + """ + pg = context.scene.pdt_pg pg.error = f"{PDT_ERR_NOINT}" context.window_manager.popup_menu(oops, title="Error", icon="ERROR") @@ -51,10 +67,11 @@ def extend_vertex(context): """Computes Edge Extension to Face. Args: - None + context: Blender bpy.context instance. Returns: - Nothing.""" + Nothing. + """ obj = bpy.context.edit_object pg = context.scene.pdt_pg @@ -116,7 +133,15 @@ class PDT_OT_EdgeToFace(bpy.types.Operator): @classmethod def poll(cls, context): - """Only allow this to work if a mesh is selected in EDIT mode.""" + """Only allow this to work if a mesh is selected in EDIT mode. + + Args: + context: Blender bpy.context instance. + + Returns: + Boolean. + """ + obj = context.object if obj is None: return False @@ -129,7 +154,8 @@ class PDT_OT_EdgeToFace(bpy.types.Operator): context: Blender bpy.context instance. Returns: - Status Set.""" + Status Set. + """ pg = context.scene.pdt_pg pg.command = f"etf" |