Blender Git Loki

Git Commits -> Revision 29572da

August 16, 2021, 04:19 (GMT)
File/Asset Browser: Select/Activate File on Right Click for Context Menu

Right clicking would spawn the context menu under the cursor, but some
operators would actually act on the active asset/file which wasn't
the one clicked on.

When multiple files are selected and one of them is right-clicked on,
selection is not changed to allow operations on multiple files. E.g.
deletion.

This makes the File/Asset Browser match the Outliner (in behavior, not
implementation).

For the right-click selection keymap:
* The context menu still only spawns on W.
* Bonus: Right click now does something, it actually selects files!
I could have done additional changes here to avoid this, but it seems
like a good addition.

This is also a better alternative to rB5edfde58fe60, which didn't work
properly either. Using rename from the context menu would only work if
the clicked on file was also active...

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

Reviewed by: Campbell Barton

Commit Details:

Full Hash: 29572da1c35b288a061da7dc0a7e93d123078809
Parent Commit: e6a125b
Committed By: YimingWu
Lines Changed: +33, -18

3 Modified Paths:

/release/scripts/presets/keyconfig/keymap_data/blender_default.py (+4, -0) (Diff)
/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py (+4, -0) (Diff)
/source/blender/editors/space_file/file_ops.c (+25, -18) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021