Fix T59172: Blender 2.7x keymap error when setting pivot point
- only call pivot/orientation pies in non-legacy mode (had duplicate entries) - space_data.pivot_point > tool_settings.transform_pivot_point Reviewers: brecht Maniphest Tasks: T59172 Differential Revision: https://developer.blender.org/D4088
This commit is contained in:
parent
a84c823b89
commit
86e6901662
Notes:
blender-bot
2023-02-14 08:58:01 +01:00
Referenced by issue #59172, Blender 2.8 - Blender 2.7x keymaps throw out errors
|
@ -1040,8 +1040,6 @@ def km_view3d(params):
|
|||
("view3d.pastebuffer", {"type": 'V', "value": 'PRESS', "ctrl": True}, None),
|
||||
# Menus.
|
||||
op_menu_pie("VIEW3D_MT_snap_pie", {"type": 'S', "value": 'PRESS', "shift": True}),
|
||||
op_menu_pie("VIEW3D_MT_pivot_pie", {"type": 'PERIOD', "value": 'PRESS'}),
|
||||
op_menu_pie("VIEW3D_MT_orientations_pie", {"type": 'COMMA', "value": 'PRESS'}),
|
||||
# Transform.
|
||||
("transform.translate", {"type": 'G', "value": 'PRESS'}, None),
|
||||
("transform.translate", {"type": params.select_tweak, "value": 'ANY'}, None),
|
||||
|
@ -1119,19 +1117,19 @@ def km_view3d(params):
|
|||
{"properties": [("texture_space", True)]}),
|
||||
# Old pivot.
|
||||
("wm.context_set_enum", {"type": 'COMMA', "value": 'PRESS'},
|
||||
{"properties": [("data_path", 'space_data.pivot_point'), ("value", 'BOUNDING_BOX_CENTER')]}),
|
||||
{"properties": [("data_path", 'tool_settings.transform_pivot_point'), ("value", 'BOUNDING_BOX_CENTER')]}),
|
||||
("wm.context_set_enum", {"type": 'COMMA', "value": 'PRESS', "ctrl": True},
|
||||
{"properties": [("data_path", 'space_data.pivot_point'), ("value", 'MEDIAN_POINT')]}),
|
||||
{"properties": [("data_path", 'tool_settings.transform_pivot_point'), ("value", 'MEDIAN_POINT')]}),
|
||||
("wm.context_toggle", {"type": 'COMMA', "value": 'PRESS', "alt": True},
|
||||
{"properties": [("data_path", 'tool_settings.use_transform_pivot_point_align')]}),
|
||||
("wm.context_toggle", {"type": 'SPACE', "value": 'PRESS', "ctrl": True},
|
||||
{"properties": [("data_path", 'space_data.show_gizmo_tool')]}),
|
||||
("wm.context_set_enum", {"type": 'PERIOD', "value": 'PRESS'},
|
||||
{"properties": [("data_path", 'space_data.pivot_point'), ("value", 'CURSOR')]}),
|
||||
{"properties": [("data_path", 'tool_settings.transform_pivot_point'), ("value", 'CURSOR')]}),
|
||||
("wm.context_set_enum", {"type": 'PERIOD', "value": 'PRESS', "ctrl": True},
|
||||
{"properties": [("data_path", 'space_data.pivot_point'), ("value", 'INDIVIDUAL_ORIGINS')]}),
|
||||
{"properties": [("data_path", 'tool_settings.transform_pivot_point'), ("value", 'INDIVIDUAL_ORIGINS')]}),
|
||||
("wm.context_set_enum", {"type": 'PERIOD', "value": 'PRESS', "alt": True},
|
||||
{"properties": [("data_path", 'space_data.pivot_point'), ("value", 'ACTIVE_ELEMENT')]}),
|
||||
{"properties": [("data_path", 'tool_settings.transform_pivot_point'), ("value", 'ACTIVE_ELEMENT')]}),
|
||||
# Old shading.
|
||||
("wm.context_toggle_enum", {"type": 'Z', "value": 'PRESS'},
|
||||
{"properties": [("data_path", 'space_data.shading.type'), ("value_1", 'WIREFRAME'), ("value_2", 'SOLID')]}),
|
||||
|
|
Loading…
Reference in New Issue