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:
authorAlan Odom <clockmender@icloud.com>2020-02-12 14:59:58 +0300
committerRune Morling <ermo.blender.org@spammesenseless.net>2020-03-28 20:55:04 +0300
commit4015cd14250a7db23f81df22a3799701e8007664 (patch)
tree80b44ddd74ff7b5b5eb51856a33ba109d8537b40 /precision_drawing_tools
parent2f43f0802f6edc04f92cf756eda46750fd3bdb61 (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.py9
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: