PDT: Placing new vertex by Absolute (fix)

Minor error, there is no need to check for vertex type if adding a new vertex
by absolute coordinates.
This commit is contained in:
Alan Odom 2020-02-12 11:59:58 +00:00 committed by Rune Morling
parent 2f43f0802f
commit 4015cd1425
1 changed files with 5 additions and 4 deletions

View File

@ -652,10 +652,11 @@ def add_new_vertex(context, pg, operation, mode, obj, bm, verts, values):
pg.error = PDT_ERR_ADDVEDIT
context.window_manager.popup_menu(oops, title="Error", icon="ERROR")
raise PDT_SelectionError
if not isinstance(verts[0], bmesh.types.BMVert):
pg.error = PDT_ERR_VERT_MODE
context.window_manager.popup_menu(oops, title="Error", icon="ERROR")
raise PDT_FeatureError
if mode not in {"a"}:
if not isinstance(verts[0], bmesh.types.BMVert):
pg.error = PDT_ERR_VERT_MODE
context.window_manager.popup_menu(oops, title="Error", icon="ERROR")
raise PDT_FeatureError
# Absolute/Global Coordinates
if mode == "a":
try: