diff options
author | Alan Odom <clockmender@icloud.com> | 2020-02-12 14:59:58 +0300 |
---|---|---|
committer | Rune Morling <ermo.blender.org@spammesenseless.net> | 2020-03-28 20:55:04 +0300 |
commit | 4015cd14250a7db23f81df22a3799701e8007664 (patch) | |
tree | 80b44ddd74ff7b5b5eb51856a33ba109d8537b40 /precision_drawing_tools | |
parent | 2f43f0802f6edc04f92cf756eda46750fd3bdb61 (diff) |
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.
Diffstat (limited to 'precision_drawing_tools')
-rw-r--r-- | precision_drawing_tools/pdt_command.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/precision_drawing_tools/pdt_command.py b/precision_drawing_tools/pdt_command.py index ad21680f..dc30d2ff 100644 --- a/precision_drawing_tools/pdt_command.py +++ b/precision_drawing_tools/pdt_command.py @@ -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: |