Blender Git Commit Log

Git Commits -> Revision 3649b5b

Revision 3649b5b by Sybren A. Stüvel (master)
March 1, 2021, 13:37 (GMT)
Add `--open-last` CLI argument that opens the most recent file

Add a CLI argument `--open-last` that opens the most recent file,
effectively doing the same as {key Ctrl Shift O}, {key Enter} after
starting Blender.

When there are no known recent files, print a warning and do nothing,
showing the startup file instead.

Note that this does not try to be smart about restoring the last Blender
session. It just opens the file from disk, as if the user had typed
`blender $(head -n1 ~/.config/blender/2.93/config/recent-files.txt)`.

There is also no smartness when that file cannot be opened; it behaves
exactly the same as typing the most recent filename on the CLI.

Reviewed by: mont29, campbellbarton

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

Commit Details:

Full Hash: 3649b5b6dfff8c02637648773165efe5f94aeecf
Parent Commit: e06f5f6
Lines Changed: +19, -0

By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021