Page Menu
Home
Search
Configure Global Search
Log In
Files
F10417
uvedit_select_mode.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Davis Sorenson (dsavi)
Nov 13 2013, 2:13 PM
Size
2 KB
Subscribers
None
uvedit_select_mode.patch
View Options
--- source/blender/editors/uvedit/uvedit_ops.c (revision 32303)
+++ source/blender/editors/uvedit/uvedit_ops.c (working copy)
@@ -1,5 +1,5 @@
/**
- * $Id$
+ * $Id: uvedit_ops.c 32146 2010-09-27 09:50:20Z campbellbarton $
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
@@ -3239,6 +3239,7 @@
/* menus */
WM_keymap_add_menu(keymap, "IMAGE_MT_uvs_snap", SKEY, KM_PRESS, KM_SHIFT, 0);
+ WM_keymap_add_menu(keymap, "IMAGE_MT_uvs_selection_mode", TABKEY, KM_PRESS, KM_CTRL, 0);
ED_object_generic_keymap(keyconf, keymap, 2);
--- release/scripts/ui/space_image.py (revision 32303)
+++ release/scripts/ui/space_image.py (working copy)
@@ -250,6 +250,47 @@
layout.separator()
layout.menu("IMAGE_MT_uvs_showhide")
+
+class IMAGE_MT_uvs_selection_mode(bpy.types.Menu):
+ bl_label = "UV Select Mode"
+
+ def draw(self, context):
+ layout = self.layout
+
+ layout.operator_context = 'INVOKE_REGION_WIN'
+ toolsettings = context.tool_settings
+
+ # do smart things depending on whether uv_select_sync is on
+
+ if toolsettings.use_uv_select_sync:
+ prop = layout.operator("wm.context_set_value", text="Vertex", icon='VERTEXSEL')
+ prop.value = "(True, False, False)"
+ prop.data_path = "tool_settings.mesh_select_mode"
+
+ prop = layout.operator("wm.context_set_value", text="Edge", icon='EDGESEL')
+ prop.value = "(False, True, False)"
+ prop.data_path = "tool_settings.mesh_select_mode"
+
+ prop = layout.operator("wm.context_set_value", text="Face", icon='FACESEL')
+ prop.value = "(False, False, True)"
+ prop.data_path = "tool_settings.mesh_select_mode"
+
+ else:
+ prop = layout.operator("wm.context_set_string", text="Vertex", icon='UV_VERTEXSEL')
+ prop.value = "VERTEX"
+ prop.data_path = "tool_settings.uv_select_mode"
+
+ prop = layout.operator("wm.context_set_string", text="Edge", icon='UV_EDGESEL')
+ prop.value = "EDGE"
+ prop.data_path = "tool_settings.uv_select_mode"
+
+ prop = layout.operator("wm.context_set_string", text="Face", icon='UV_FACESEL')
+ prop.value = "FACE"
+ prop.data_path = "tool_settings.uv_select_mode"
+
+ prop = layout.operator("wm.context_set_string", text="Island", icon='UV_ISLANDSEL')
+ prop.value = "ISLAND"
+ prop.data_path = "tool_settings.uv_select_mode"
class IMAGE_HT_header(bpy.types.Header):
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
94/87/d1b1d211ba86a9a31b7c03ead03f
Event Timeline
Log In to Comment