[Bf-blender-cvs] [ae01a851a6b] master: Fix T58657: blender 2.7 keymap Alt+A does not work for animation playback.

Brecht Van Lommel noreply at git.blender.org
Fri Jan 4 14:45:54 CET 2019


Commit: ae01a851a6bad56a36d5d4bcde1f7ed2e929fc8b
Author: Brecht Van Lommel
Date:   Fri Jan 4 14:34:07 2019 +0100
Branches: master
https://developer.blender.org/rBae01a851a6bad56a36d5d4bcde1f7ed2e929fc8b

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

===================================================================

M	release/scripts/presets/keyconfig/keymap_data/blender_default.py

===================================================================

diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
index 30d2f2ee862..f7ef464ccaf 100644
--- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py
+++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
@@ -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')]}),



More information about the Bf-blender-cvs mailing list