Skip to content
Snippets Groups Projects
Commit 639e1d3a authored by Alan Odom's avatar Alan Odom Committed by Rune Morling
Browse files

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.
parent 4f3a6caf
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment