[Bf-blender-cvs] [a17df6d91e6] master: Fix T62841: Hidden collection shortcut should be work in edit mode
Dalai Felinto
noreply at git.blender.org
Fri Mar 22 16:03:55 CET 2019
Commit: a17df6d91e6806186c7416669c61950b763fe665
Author: Dalai Felinto
Date: Fri Mar 22 11:58:44 2019 -0300
Branches: master
https://developer.blender.org/rBa17df6d91e6806186c7416669c61950b763fe665
Fix T62841: Hidden collection shortcut should be work in edit mode
This is a full revert of b6c61945aed51d86dc474df616761f9a25d71d09.
But ammended to include the object.hide_collection() operator to the
pose keymap as well.
While trying to expose the shortcuts to pose mode, I ended up exposing
them for all the modes. It is now only available for object and mode
modes.
===================================================================
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 ce94608cad6..7af1f519c60 100644
--- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py
+++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
@@ -1066,14 +1066,6 @@ def km_view3d(params):
op_panel("VIEW3D_PT_snapping", {"type": 'TAB', "value": 'PRESS', "shift": True, "ctrl": True}, [("keep_open", False)]),
("object.transform_axis_target", {"type": 'T', "value": 'PRESS', "shift": True}, None),
("transform.skin_resize", {"type": 'A', "value": 'PRESS', "ctrl": True}, None),
- ("object.hide_collection", {"type": 'H', "value": 'PRESS', "ctrl": True}, None),
- *(
- (("object.hide_collection",
- {"type": NUMBERS_1[i], "value": 'PRESS', "any": True},
- {"properties": [("collection_index", i + 1)]})
- for i in range(10)
- )
- ),
])
if params.apple:
@@ -3326,6 +3318,13 @@ def km_pose(params):
("pose.breakdown", {"type": 'E', "value": 'PRESS', "shift": True}, None),
op_menu("VIEW3D_MT_pose_context_menu", params.context_menu_event),
op_menu("VIEW3D_MT_pose_propagate", {"type": 'P', "value": 'PRESS', "alt": True}),
+ *(
+ (("object.hide_collection",
+ {"type": NUMBERS_1[i], "value": 'PRESS', "any": True},
+ {"properties": [("collection_index", i + 1)]})
+ for i in range(10)
+ )
+ ),
])
if params.apple:
@@ -3404,6 +3403,14 @@ def km_object_mode(params):
{"properties": [("unselected", False)]}),
("object.hide_view_set", {"type": 'H', "value": 'PRESS', "shift": True},
{"properties": [("unselected", True)]}),
+ ("object.hide_collection", {"type": 'H', "value": 'PRESS', "ctrl": True}, None),
+ *(
+ (("object.hide_collection",
+ {"type": NUMBERS_1[i], "value": 'PRESS', "any": True},
+ {"properties": [("collection_index", i + 1)]})
+ for i in range(10)
+ )
+ ),
])
if params.legacy:
More information about the Bf-blender-cvs
mailing list