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:
Diffstat (limited to 'precision_drawing_tools/pdt_bix.py')
-rw-r--r--precision_drawing_tools/pdt_bix.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/precision_drawing_tools/pdt_bix.py b/precision_drawing_tools/pdt_bix.py
index f6b5cb66..ec9661d9 100644
--- a/precision_drawing_tools/pdt_bix.py
+++ b/precision_drawing_tools/pdt_bix.py
@@ -117,7 +117,15 @@ class PDT_OT_LineOnBisection(bpy.types.Operator):
@classmethod
def poll(cls, context):
- """Only allow operation on a mesh object in EDIT mode."""
+ """Only allow operation on a mesh object in EDIT mode.
+
+ Args:
+ context: Blender bpy.context instance.
+
+ Returns:
+ Boolean.
+ """
+
obj = context.active_object
if obj is None:
return False