UI: Make UV Editor contextual menu more consistent with 3D View
[blender.git] / release / scripts / startup / bl_ui / space_image.py
index b30e5c8c642e0a39fff5320e69e11689c019e24c..7d8e4e7eb3ecbe264af16e8f41865c6a587d79cc 100644 (file)
@@ -448,31 +448,33 @@ class IMAGE_MT_uvs_context_menu(Menu):
 
         # UV Edit Mode
         if sima.show_uvedit:
+            # Add
             layout.operator("uv.unwrap")
             layout.operator("uv.follow_active_quads")
 
             layout.separator()
 
+            # Modify
             layout.operator("uv.pin").clear = False
             layout.operator("uv.pin", text="Unpin").clear = True
 
             layout.separator()
 
-            layout.operator("uv.weld")
-            layout.operator("uv.stitch")
-
-            layout.separator()
+            layout.menu("IMAGE_MT_uvs_snap")
 
-            layout.operator_enum("uv.align", "axis")  # W, 2/3/4.
+            layout.operator("transform.mirror", text="Mirror X").constraint_axis[0] = True
+            layout.operator("transform.mirror", text="Mirror Y").constraint_axis[1] = True
 
             layout.separator()
 
-            layout.operator("transform.mirror", text="Mirror X").constraint_axis[0] = True
-            layout.operator("transform.mirror", text="Mirror Y").constraint_axis[1] = True
+            layout.operator_enum("uv.align", "axis")  # W, 2/3/4.
 
             layout.separator()
 
-            layout.menu("IMAGE_MT_uvs_snap")
+            # Remove
+            layout.operator("uv.remove_doubles", text="Remove Double UVs")
+            layout.operator("uv.stitch")
+            layout.operator("uv.weld")
 
 
 class IMAGE_MT_pivot_pie(Menu):