Fix T59768: UV context menu showing in image editor.

This commit is contained in:
2019-01-04 13:47:50 +01:00
parent bdbe484428
commit 32ae3abbab
2 changed files with 3 additions and 3 deletions

View File

@@ -767,6 +767,7 @@ def km_uv_editor(params):
{"properties": [("data_path", 'tool_settings.use_snap')]}), {"properties": [("data_path", 'tool_settings.use_snap')]}),
("wm.context_menu_enum", {"type": 'TAB', "value": 'PRESS', "shift": True, "ctrl": True}, ("wm.context_menu_enum", {"type": 'TAB', "value": 'PRESS', "shift": True, "ctrl": True},
{"properties": [("data_path", 'tool_settings.snap_uv_element')]}), {"properties": [("data_path", 'tool_settings.snap_uv_element')]}),
op_menu("IMAGE_MT_uvs_specials", params.context_menu_event),
]) ])
# 3D cursor # 3D cursor
@@ -1411,7 +1412,6 @@ def km_image_generic(params):
("image.save_as", {"type": 'S', "value": 'PRESS', "shift": True}, None), ("image.save_as", {"type": 'S', "value": 'PRESS', "shift": True}, None),
("image.properties", {"type": 'N', "value": 'PRESS'}, None), ("image.properties", {"type": 'N', "value": 'PRESS'}, None),
("image.toolshelf", {"type": 'T', "value": 'PRESS'}, None), ("image.toolshelf", {"type": 'T', "value": 'PRESS'}, None),
op_menu("IMAGE_MT_specials", params.context_menu_event),
("image.cycle_render_slot", {"type": 'J', "value": 'PRESS'}, None), ("image.cycle_render_slot", {"type": 'J', "value": 'PRESS'}, None),
("image.cycle_render_slot", {"type": 'J', "value": 'PRESS', "alt": True}, ("image.cycle_render_slot", {"type": 'J', "value": 'PRESS', "alt": True},
{"properties": [("reverse", True)]}), {"properties": [("reverse", True)]}),

View File

@@ -438,7 +438,7 @@ class IMAGE_MT_uvs_select_mode(Menu):
props.data_path = "tool_settings.uv_select_mode" props.data_path = "tool_settings.uv_select_mode"
class IMAGE_MT_specials(Menu): class IMAGE_MT_uvs_specials(Menu):
bl_label = "UV Context Menu" bl_label = "UV Context Menu"
def draw(self, context): def draw(self, context):
@@ -1325,7 +1325,7 @@ classes = (
IMAGE_MT_uvs_mirror, IMAGE_MT_uvs_mirror,
IMAGE_MT_uvs_weldalign, IMAGE_MT_uvs_weldalign,
IMAGE_MT_uvs_select_mode, IMAGE_MT_uvs_select_mode,
IMAGE_MT_specials, IMAGE_MT_uvs_specials,
IMAGE_MT_pivot_pie, IMAGE_MT_pivot_pie,
IMAGE_MT_uvs_snap_pie, IMAGE_MT_uvs_snap_pie,
IMAGE_HT_header, IMAGE_HT_header,