Fix T58657: blender 2.7 keymap Alt+A does not work for animation playback.

This commit is contained in:
Brecht Van Lommel
2019-01-04 14:34:07 +01:00
parent e571f0255f
commit ae01a851a6

View File

@@ -152,6 +152,12 @@ def _template_items_select_actions(params, operator):
(operator, {"type": 'I', "value": 'PRESS', "ctrl": True}, {"properties": [("action", 'INVERT')]}),
(operator, {"type": 'A', "value": 'DOUBLE_CLICK'}, {"properties": [("action", 'DESELECT')]}),
]
elif params.legacy:
# Alt+A is for playback in legacy keymap.
return [
(operator, {"type": 'A', "value": 'PRESS'}, {"properties": [("action", 'TOGGLE')]}),
(operator, {"type": 'I', "value": 'PRESS', "ctrl": True}, {"properties": [("action", 'INVERT')]}),
]
else:
return [
(operator, {"type": 'A', "value": 'PRESS'}, {"properties": [("action", 'TOGGLE')]}),