mesh_snap_utilities_line: select the snapped element at the end of the operation

In the pre-blender2.8 versions, the elements were selected during the operation to be identified.
Now this is no longer necessary.
However, the ability to leave the last element selected proved useful.
This commit is contained in:
Germano Cavalcante 2018-12-21 14:00:19 -02:00
parent c48c4743bc
commit 5bce44b8be
2 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,7 @@
bl_info = {
"name": "Snap_Utilities_Line",
"author": "Germano Cavalcante",
"version": (5, 8, 26),
"version": (5, 8, 27),
"blender": (2, 80, 0),
"location": "View3D > TOOLS > Make Line",
"description": "Extends Blender Snap controls",

View File

@ -430,6 +430,8 @@ class SnapUtilitiesLine(bpy.types.Operator):
elif event.type in {'RIGHTMOUSE', 'ESC'}:
if not self.wait_for_input or not is_making_lines or event.type == 'ESC':
if self.geom:
self.geom.select = True
self._exit(context)
return {'FINISHED'}
else: