[Bf-extensions-cvs] [40a9d56b] blender-v2.93-release: PDT: Fix "Move Vertices to Absolute Location" operation

Rune Morling noreply at git.blender.org
Mon May 17 19:44:33 CEST 2021


Commit: 40a9d56b1eb4b7a7905bd25cd4da199746a044de
Author: Rune Morling
Date:   Mon May 17 19:35:22 2021 +0200
Branches: blender-v2.93-release
https://developer.blender.org/rBA40a9d56b1eb4b7a7905bd25cd4da199746a044de

PDT: Fix "Move Vertices to Absolute Location" operation

System would not move selected vertices to an absolute location in Edit Mode.

This was caused by system not recognising selected vertices.

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

M	precision_drawing_tools/pdt_command.py

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

diff --git a/precision_drawing_tools/pdt_command.py b/precision_drawing_tools/pdt_command.py
index 57415b7b..b8b2ff66 100644
--- a/precision_drawing_tools/pdt_command.py
+++ b/precision_drawing_tools/pdt_command.py
@@ -613,7 +613,7 @@ def move_entities(context, pg, operation, mode, obj, bm, verts, values):
         except:
             raise PDT_InvalidVector
         if obj.mode == "EDIT":
-            for v in verts:
+            for v in [v for v in bm.verts if v.select]:
                 v.co = vector_delta - obj_loc
             bmesh.ops.remove_doubles(
                 bm, verts=[v for v in bm.verts if v.select], dist=0.0001



More information about the Bf-extensions-cvs mailing list