Blender Git Loki
Git Commits -> Revision 36d6424
Revision 36d6424 by Julian Eisel (master) September 19, 2015, 02:24 (GMT) |
File Browser: Scroll view on normal selection too Adjusts view after mouse/border selection if some selected items are out of view bounds. To get as much of the selection into view as possible, this adjusts view first for the last, then for the first element in the selection. Also, if region is pretty small, view adjustment is skipped, as otherwise the view is focused on the first element only, which isn't really useful IMHO. Maybe not so nice: Since we do two view alignment iterations, UI_view2d_curRect_validate, which is a rather big function *might* be called twice under certain circumstances (border select & total size of selected elements is exceeds view bounds). I think that's totally acceptable though. |
Commit Details:
Full Hash: 36d64240e6898a5372a072f36a9ef30152e260fc
Parent Commit: d7e88fe
Lines Changed: +14, -0
1 Modified Path:
/source/blender/editors/space_file/file_ops.c (+14, -0) (Diff)