diff options
author | Alan Odom <clockmender@icloud.com> | 2020-02-04 22:22:07 +0300 |
---|---|---|
committer | Rune Morling <ermo.blender.org@spammesenseless.net> | 2020-02-05 00:20:51 +0300 |
commit | ae250bd102e4c16934897b6675d48462b4e2fd4f (patch) | |
tree | 52a7635ad4bdbe8af8f8786b56825ace7444e39a /precision_drawing_tools | |
parent | 2155cafcabcba16a02cc618fdd9a16b551af9577 (diff) |
PDT: Fix Small Error in New Vertex Absolute
Fixed a small error in New Vertex placed at Absolute Coordinates.
This error was very hard to detect and only occurs in very odd circumstances
It no longer occurs, a similar error might have also occurred with Extrude Vertices
to Absolute location, this fix also prevents that.
Diffstat (limited to 'precision_drawing_tools')
-rw-r--r-- | precision_drawing_tools/pdt_command.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/precision_drawing_tools/pdt_command.py b/precision_drawing_tools/pdt_command.py index 2ed6d57d..e2c4c5dc 100644 --- a/precision_drawing_tools/pdt_command.py +++ b/precision_drawing_tools/pdt_command.py @@ -149,7 +149,7 @@ def command_run(self, context): # Check Object Type & Mode First obj = context.view_layer.objects.active - if obj is not None: + if obj is not None and command[0].upper() not in {"M", "?", "HELP"}: if obj.mode not in {"OBJECT", "EDIT"} or obj.type != "MESH": pg.error = PDT_OBJ_MODE_ERROR context.window_manager.popup_menu(oops, title="Error", icon="ERROR") @@ -439,7 +439,11 @@ def command_parse(context): if mode_sel == 'REL' and operation not in {"C", "P"}: pg.select = 'SEL' - if mode_sel == 'SEL' and mode not in {"a"}: + if ( + (mode_sel == 'SEL' and mode not in {"a"}) + or + (mode == "a" and operation not in {"C", "P"}) + ): bm, good = obj_check(obj, scene, operation) if good and obj.mode == 'EDIT': obj_loc = obj.matrix_world.decompose()[0] |