Blender Git Loki

Git Commits -> Revision 5a67407

Revision 5a67407 by Sybren A. Stüvel (master)
March 8, 2021, 14:21 (GMT)
File Browser: scroll selected files into view

Add operator `FILE_OT_view_selected` to the file browser (and thus also
to the asset browser) that scrolls selected files into view.

This includes the active file, even though it is not selected. In
certain cases the active file can loose its selected state (clicking
next to it, or refreshing the asset browser), but then it's still shown
in the right-hand sidebar. Because of this, I found it important to take
it into account when scrolling.

This also includes a change to the keymaps:
- Blender default: {key NUMPAD_PERIOD} is removed from the "reload"
operator, and assigned to the new "view selected files" operator. The
reload operator was already doubly bound, and now {key R} is the only
remaining hotkey for it.
- Industry compatible: {key F} is assigned to the new "view selected
files" operator. This is consistent with the other "view selected"
operators in other editors.

Reviewed By: Severin

Differential Revision: https://developer.blender.org/D10583

Commit Details:

Full Hash: 5a67407d5aa8800faf78f40811b703d07e8f7300
Parent Commit: e20b315
Lines Changed: +114, -11

8 Modified Paths:

/release/scripts/presets/keyconfig/keymap_data/blender_default.py (+1, -1) (Diff)
/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py (+1, -0) (Diff)
/release/scripts/startup/bl_ui/space_filebrowser.py (+1, -0) (Diff)
/source/blender/editors/space_file/filelist.c (+13, -0) (Diff)
/source/blender/editors/space_file/filelist.h (+1, -0) (Diff)
/source/blender/editors/space_file/file_intern.h (+1, -0) (Diff)
/source/blender/editors/space_file/file_ops.c (+95, -10) (Diff)
/source/blender/editors/space_file/space_file.c (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021