[Bf-blender-cvs] [d2b910fafec] master: UI: UV: Add Select Shortest Path to menu

Aaron Carlisle noreply at git.blender.org
Fri Jul 10 22:07:40 CEST 2020


Commit: d2b910fafec6532cfe4438d3e621d21a616a61ba
Author: Aaron Carlisle
Date:   Fri Jul 10 16:07:31 2020 -0400
Branches: master
https://developer.blender.org/rBd2b910fafec6532cfe4438d3e621d21a616a61ba

UI: UV: Add Select Shortest Path to menu

This matches the 3D Viewport

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

M	release/scripts/startup/bl_ui/space_image.py

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

diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index eb6389e5076..e272a1dbd68 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -176,7 +176,7 @@ class IMAGE_MT_select(Menu):
         layout.separator()
 
         layout.operator("uv.select_pinned")
-        layout.operator("uv.select_linked")
+        layout.menu("IMAGE_MT_select_linked")
 
         layout.separator()
 
@@ -184,6 +184,16 @@ class IMAGE_MT_select(Menu):
         layout.operator("uv.select_overlap")
 
 
+class IMAGE_MT_select_linked(Menu):
+    bl_label = "Select Linked"
+
+    def draw(self, _context):
+        layout = self.layout
+
+        layout.operator("uv.select_linked", text="Linked")
+        layout.operator("uv.shortest_path_pick", text="Shortest Path")
+
+
 class IMAGE_MT_image(Menu):
     bl_label = "Image"
 
@@ -1479,6 +1489,7 @@ classes = (
     IMAGE_MT_view,
     IMAGE_MT_view_zoom,
     IMAGE_MT_select,
+    IMAGE_MT_select_linked,
     IMAGE_MT_image,
     IMAGE_MT_image_invert,
     IMAGE_MT_uvs,



More information about the Bf-blender-cvs mailing list