Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-03-01 16:36:52 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-03-01 16:37:33 +0300
commit3649b5b6dfff8c02637648773165efe5f94aeecf (patch)
treedddeaa4a9b76343494904ed4ca7e43b2d413f088 /source/blender/editors/screen/area.c
parente06f5f64aeac914c17cfc267b1335869d0f24309 (diff)
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
Diffstat (limited to 'source/blender/editors/screen/area.c')
0 files changed, 0 insertions, 0 deletions