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.
This commit is contained in:
Rune Morling 2021-05-17 19:35:22 +02:00
parent e2516bfae6
commit 40a9d56b1e
1 changed files with 1 additions and 1 deletions

View File

@ -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