From 639e1d3adc9861babb335566e4502ad07d04f12e Mon Sep 17 00:00:00 2001 From: Alan Odom <clockmender@icloud.com> Date: Tue, 18 Feb 2020 09:52:40 +0000 Subject: [PATCH] PDT: Check a Selection is Made (fix) Make sure that there is a selection of vertices before processing, must be a minimum of 1 in Point mode and 2 in other modes. --- pdt_tangent.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pdt_tangent.py b/pdt_tangent.py index e5f32e0b0..d292a7ff2 100644 --- a/pdt_tangent.py +++ b/pdt_tangent.py @@ -540,6 +540,10 @@ class PDT_OT_TangentOperateSel(Operator): # Get All Values from Selected Vertices verts = [v for v in bm.verts if v.select] + if len(verts) <= 0: + pg.error = f"{PDT_ERR_SEL_1_VERT} 0" + context.window_manager.popup_menu(oops, title="Error", icon="ERROR") + return {"FINISHED"} v1 = verts[0] vn = verts[-1] for v in bm.verts: -- GitLab