[Bf-extensions-cvs] [5bce44b8] master: mesh_snap_utilities_line: select the snapped element at the end of the operation

mano-wii noreply at git.blender.org
Fri Dec 21 18:01:56 CET 2018


Commit: 5bce44b8becf656ec30ab2b9478d5cb230f0f0f1
Author: mano-wii
Date:   Fri Dec 21 14:00:19 2018 -0200
Branches: master
https://developer.blender.org/rBA5bce44b8becf656ec30ab2b9478d5cb230f0f0f1

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.

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

M	mesh_snap_utilities_line/__init__.py
M	mesh_snap_utilities_line/ops_line.py

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

diff --git a/mesh_snap_utilities_line/__init__.py b/mesh_snap_utilities_line/__init__.py
index 39c2f801..36b96255 100644
--- a/mesh_snap_utilities_line/__init__.py
+++ b/mesh_snap_utilities_line/__init__.py
@@ -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",
diff --git a/mesh_snap_utilities_line/ops_line.py b/mesh_snap_utilities_line/ops_line.py
index 9c5f38ed..a824a128 100644
--- a/mesh_snap_utilities_line/ops_line.py
+++ b/mesh_snap_utilities_line/ops_line.py
@@ -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:



More information about the Bf-extensions-cvs mailing list