[Bf-blender-cvs] [12716e6b9fc] master: UI: Make UV Editor contextual menu more consistent with 3D View
William Reynish
noreply at git.blender.org
Tue Mar 19 13:14:36 CET 2019
Commit: 12716e6b9fc74bd53be39ec7aab16ca8d43f0593
Author: William Reynish
Date: Tue Mar 19 13:14:35 2019 +0100
Branches: master
https://developer.blender.org/rB12716e6b9fc74bd53be39ec7aab16ca8d43f0593
UI: Make UV Editor contextual menu more consistent with 3D View
-Use same ordering of Add, Modify, Remove
-Add back Remove Doubles here
===================================================================
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 b30e5c8c642..7d8e4e7eb3e 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -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):
More information about the Bf-blender-cvs
mailing list