[Bf-extensions-cvs] [7ae27d2b] blender-v2.82-release: PDT: Fix bug in Command Line: New Vertex

Alan Odom noreply at git.blender.org
Tue Jan 14 22:32:16 CET 2020


Commit: 7ae27d2b019c1320bdda28c319036236a15520b5
Author: Alan Odom
Date:   Tue Jan 14 11:40:00 2020 +0000
Branches: blender-v2.82-release
https://developer.blender.org/rBA7ae27d2b019c1320bdda28c319036236a15520b5

PDT: Fix bug in Command Line: New Vertex

Commands like ni20,45 did not work because there were 2 mode == "d" clauses.

Replace one mode == "d" clause with a mode == "i" clause.

===================================================================

M	precision_drawing_tools/pdt_command.py

===================================================================

diff --git a/precision_drawing_tools/pdt_command.py b/precision_drawing_tools/pdt_command.py
index 2b215fb1..6b433fcc 100644
--- a/precision_drawing_tools/pdt_command.py
+++ b/precision_drawing_tools/pdt_command.py
@@ -494,7 +494,7 @@ def command_run(self, context):
             bmesh.update_edit_mesh(obj.data)
             bm.select_history.clear()
         # Direction/Polar Coordinates
-        elif mode == "d":
+        elif mode == "i":
             if len(vals) != 2:
                 pg.error = PDT_ERR_BAD2VALS
                 context.window_manager.popup_menu(oops, title="Error", icon="ERROR")



More information about the Bf-extensions-cvs mailing list