Fix T83861: Snapping panel from shortcut dissapears after click

This simple change sets the call_panel operator's "keep_open" property
to True for the viewport snapping panel called with `ctrl-shift-tab`.
There are quite a few settings in this panel, it often makes sense to
change more than one of them at a time, especially because multiple
snap elements can be active at the same time.
This commit is contained in:
Hans Goudey 2020-12-16 14:40:30 -06:00
parent 07c4615431
commit 9f588432e9
Notes: blender-bot 2023-02-14 12:01:57 +01:00
Referenced by issue #83861, Snapping popover, called with Ctrl+Shift+Tab disappear after click
1 changed files with 1 additions and 1 deletions

View File

@ -1217,7 +1217,7 @@ def km_view3d(params):
("transform.mirror", {"type": 'M', "value": 'PRESS', "ctrl": True}, None),
("wm.context_toggle", {"type": 'TAB', "value": 'PRESS', "shift": True},
{"properties": [("data_path", 'tool_settings.use_snap')]}),
op_panel("VIEW3D_PT_snapping", {"type": 'TAB', "value": 'PRESS', "shift": True, "ctrl": True}, [("keep_open", False)]),
op_panel("VIEW3D_PT_snapping", {"type": 'TAB', "value": 'PRESS', "shift": True, "ctrl": True}, [("keep_open", True)]),
("object.transform_axis_target", {"type": 'T', "value": 'PRESS', "shift": True}, None),
("transform.skin_resize", {"type": 'A', "value": 'PRESS', "ctrl": True}, None),
])