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:
Diffstat (limited to 'source/creator/creator.c')
-rw-r--r--source/creator/creator.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index cea32a8b171..aecff4c9e03 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -1196,6 +1196,11 @@ static int set_addons(int argc, const char **argv, void *data)
}
}
+static int test_file(int UNUSED(argc), const char **argv, void *data)
+{
+ printf("path is %s\n", argv[0]);
+}
+
static int load_file(int UNUSED(argc), const char **argv, void *data)
{
bContext *C = data;
@@ -1604,6 +1609,13 @@ int main(int argc, const char **argv)
/* OK we are ready for it */
#ifndef WITH_PYTHON_MODULE
BLI_argsParse(ba, 4, load_file, C);
+
+ if (G.background == 0) {
+ if (!G.file_loaded)
+ if (U.uiflag2 & USER_KEEP_SESSION)
+ WM_recover_last_session(C, NULL);
+ }
+
#endif
#ifndef WITH_PYTHON_MODULE